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

Plan view feature: when loading the second model in the viewer it cut it's plans at the wrong offset #126

Open
Medo-85 opened this issue May 10, 2022 · 0 comments

Comments

@Medo-85
Copy link

Medo-85 commented May 10, 2022

Hello each time I load an ifc model in the viewer I use the following method to compute the viewplan with the following method.
await this.ifc.ifcViewer?.plans.computeAllPlanViews(modelID);
Inside that function which is located at
node_modules\web-ifc-viewer\dist\components\display\plans\plan-manager.js
You can see that there is a call to
const transformHeight = await this.getTransformHeight(modelID);
now if you if you do console.log('transformHeight ', transformHeight); you will find that it is different if you load your model as the second model which result that the all view plans for that model that was loaded as the second model cuts the plans at the wrong offset because transformHeight is the wrong value.

IFC models I tested on was the following
https://github.com/IFCjs/test-ifc-files/blob/main/Revit/rac_basic_sample_project.ifc
and
https://github.com/IFCjs/test-ifc-files/blob/main/Revit/rac_advanced_sample_project.ifc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment