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

Generating Geometry for IfcPrducts one by one #511

Open
GVladislavG opened this issue Jul 20, 2023 · 3 comments
Open

Generating Geometry for IfcPrducts one by one #511

GVladislavG opened this issue Jul 20, 2023 · 3 comments

Comments

@GVladislavG
Copy link

Hello, xBim team!

I'm getting geometry for a model using this code

m_3DMdlContext = new Xbim3DModelContext(m_model);
m_3DMdlContext.MaxThreads = 1;
m_3DMdlContext.CreateContext();
m_ShapeInsts = m_3DMdlContext.ShapeInstances().ToList();

This way generates ShapeInstances for whole model, all IfcProducts at once.
And somtimes it makes xBim crash by StackOverflow or MemoryOverflow.
So is there any way to generate geometry for IfcProducts one by one,
not for whole model at once?

Please take a look at
xBimTeam/XbimGeometry#431

Thanks!

@martin1cerny
Copy link
Member

Yes, but you will need to dive deeper in the geometry engine.

@GVladislavG
Copy link
Author

GVladislavG commented Aug 1, 2023

Can you give some code sample please?
And is there any news about new version of xBim, where some problems
with geometry generation are fixed?

@martin1cerny
Copy link
Member

We are still working hard on the new geometry engine release. Search in geometry engine repository issues for code examples please. This question has been asked several times in there.

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