-
Notifications
You must be signed in to change notification settings - Fork 132
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
Geometry placement offset #503
Comments
How are you calling |
Exactly like the referenced code example does. No parameters, only default values that are nil and true, I think. |
How the adjustWcs parameter affects creating a context and result geometry? I made tests and set adjustWcs to false. All test files were exported correctly, matching each other and centered at (2685184.535, 1244523.524). |
@Ibrahim5aad can you advise? |
Hi @arturred, The adjustWcs parameter will only make offset to your geometries if the model placements tree has a single root placement (of an IfcSite for example). And this is what happened in your case, all these placements have one parent root, setting adjustWcs to true will offset these placements to origin (0, 0, 0) and remove the parent root effect from the placement tree. And yes in practical cases, it is safe to set this parameter always to false. |
Hi
I'm opening many ifc files together; most are placed correctly. But some models are shifted. Here is an example file:
08.zip
The problem seems to be
#48 IFCAXIS2PLACEMENT3D
that should apply#49
transformation but after calling context.CreateContext() all geometry is relative to 0, 0 instead of 2685184.535, 1244523.524.How can I extract this transformation vector or apply it automatically during CreateContext() before saving the geometry as WexBim?
I attached more files that should be located at 2685184.535, 1244523.524 matching together within the building
ifcoffset.zip
Other files except 00, 01 and 08 are matching together around (2685778.70763503,1244512.08346319,415.95).
I'm using the latest versions of nugets and the code from https://github.com/xBimTeam/XbimEssentials?tab=readme-ov-file#3-generating-geometry. I need to calculate a modelTranslation vector to use it for save :
model.SaveAsWexBim(wexBimBinaryWriter, nil, modelTranslation) ;
Artur
The text was updated successfully, but these errors were encountered: