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

Big size of result IFC file #470

Open
GVladislavG opened this issue Mar 19, 2024 · 3 comments
Open

Big size of result IFC file #470

GVladislavG opened this issue Mar 19, 2024 · 3 comments

Comments

@GVladislavG
Copy link

Hello, team!
There is am IFC file from Civil 3D that has size of 11 MB.
After import and export the only one object of this file using xBim I get IFC file of 20 MB.
If I do this to whole model, I get 160 MB IFC file.
MyIFC.zip

Please help to understand the reason of such difference in file sizes.
Thank you!

@andyward
Copy link
Member

It looks like

  1. You've lost the Maps (IfcMappedItems). That means all the shared geometry is lost, and now replicated per item
  2. You're defining a StyledByItem (and a graph of duplicated data such as IFCCOLOURRGB) for every RepresentationItem. Some of the items are represented by 80 meshs, and you're styling each one. See how many references to IfcColourRGB there are in the MyIFC.ifc containing one element (83) vs the original file containing the whole scene (20).

The combination of these two things will increase the size, especially here where you have complex tesselations.

I suspect Issue 2 accounts for 11MB =>20MB, while Issue 1 means the whole model => 160MB

image

@GVladislavG
Copy link
Author

GVladislavG commented Mar 20, 2024

Thanks for your answer!

Is there any way to attach one color element to whole group of IfcShellBasedSurfaceModel?
Maybe it's possible to attach color to IfcShapeRepresentation or IfcProductDefinitionShape?

@andyward
Copy link
Member

If you reintroduce the IfcMappedItem you can just style that single element. https://standards.buildingsmart.org/IFC/DEV/IFC4_2/FINAL/HTML/link/ifcshaperepresentation.htm

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

No branches or pull requests

2 participants