Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: GetLocalPlacement from typescript instead of wasmModule #872

Open
RyugaRyuzaki opened this issue Jun 24, 2024 · 7 comments
Open
Labels
enhancement New feature or request

Comments

@RyugaRyuzaki
Copy link

What is your idea?

I'm integrating this feature. For example, i want to move a model to objectPlacement with this info :
image

From typescript, i can not get it, so is there any vase that wasmModule can export this. for typescript to use ?

@RyugaRyuzaki RyugaRyuzaki added the enhancement New feature or request label Jun 24, 2024
@beachtom
Copy link
Collaborator

We can - but it may not do what you think - because the LocalPlace is then changed using various scalings and other things - to be the final placement.

What is it you are wanting to do?

@RyugaRyuzaki
Copy link
Author

We can - but it may not do what you think - because the LocalPlace is then changed using various scalings and other things - to be the final placement.

What is it you are wanting to do?

hi @beachtom , i want to get all IfcGrid ( as i remember the library has not integrated get geometry2D yet). Now i can get all IfcGridAxis2D . but i need to move it to coordination.

#369= IFCGRID('.......',#22,'........',$,$,#180,#364,(#270,#280,#290,#300,#310,#320,#330),(#182,#200,#210,#220,#230,#240,#250,#260,#340),$);

@beachtom
Copy link
Collaborator

Hi - not that won't do it. You need to run it through all the transforms.

You would need to add it to the GeometryProcessor and then return it as a 2D mesh.

Can you list all of the IFC types that are needed? Then I can look at it... or someone else can. Whoever gets time

@RyugaRyuzaki
Copy link
Author

Hi - not that won't do it. You need to run it through all the transforms.

You would need to add it to the GeometryProcessor and then return it as a 2D mesh.

Can you list all of the IFC types that are needed? Then I can look at it... or someone else can. Whoever gets time

hi @beachtom when i call api.GetLineIdWithType(modelID,WEBIFC.IFCGRID) here :
image

From each i get 1(start) and 2(end) point then i can draw a line in threejs. Looks like this :
image

The issue is now when i get all, but they are not match with origin coordination of IfcBuilding or IfcSite.

@beachtom
Copy link
Collaborator

Can you try multiplying it by the model wide coordination matrix

ifcApi.GetCoordinationMatrix(modelId)

does that work?

@RyugaRyuzaki
Copy link
Author

RyugaRyuzaki commented Jun 24, 2024

Can you try multiplying it by the model wide coordination matrix

ifcApi.GetCoordinationMatrix(modelId)

does that work?

Can you try multiplying it by the model wide coordination matrix

ifcApi.GetCoordinationMatrix(modelId)

does that work?

Well, it only worked with rotation but point did't. I have a post in community. , and here is logic (worked with rotation)

@beachtom
Copy link
Collaborator

Hmm ok - I will need to look in more detail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants