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

Component to easily handle the coordination of multiple models #34

Closed
MadsHolten opened this issue May 26, 2023 · 2 comments
Closed

Component to easily handle the coordination of multiple models #34

MadsHolten opened this issue May 26, 2023 · 2 comments
Labels
feature Something new that we could do

Comments

@MadsHolten
Copy link
Contributor

In this example the coordination matrix is supplied to the load function on Fragment, but this function only takes two arguments load(geometryURL: string, dataURL: string).

https://github.com/IFCjs/components/blob/278bab5592e6875f0a7128823790a90c65d9e41b/examples/fragment-loader.html#LL115C5-L115C5

@MadsHolten
Copy link
Contributor Author

Actually, what I was after was to be able to place multiple models in the same coordinate system. For this use case, it is probably better to just make sure that the same coordination matrix is used in all models and then when loading the fragments they are all just placed as is. Or what do you think?

@agviegas
Copy link
Contributor

Hey, sorry for the late reply. Well, when you convert IFC to fragments, the coordination matrix is the transformation that was applied to the IFC to bring the geometry to the center of the scene. Therefore, to align model B to model A, you will need to:

  1. Apply the inverse of matrixB to B
  2. Apply the matrixA to B

Nevertheless, coordination might be more complex than this, requiring extra transformations on top of this, so we will likely create a component to handle this more or less automatically.

@agviegas agviegas changed the title Coordination matrix is not applied Component to easily handle the coordination of multiple models Jun 12, 2023
@agviegas agviegas added the feature Something new that we could do label Jun 12, 2023
@agviegas agviegas closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Something new that we could do
Projects
None yet
Development

No branches or pull requests

2 participants