@gennaro wrote:
Hi everybody,
I am trying to quickly extract a mesh from a brep. My approach is in brief the one below:
brep->CreateMesh(mp,meshList); ON_Mesh* mesh = NULL; for(int i = 0; i < meshList.Count(); i++) { meshList[i]->ConvertQuadsToTriangles(); if(mesh == NULL) mesh = meshList[0]; else { mesh->Append(*meshList[i]); } }
I need a really fast mesh extraction and this seems not to be a suitable way for my needs even with the DefaultFastMeshParameters. I assume a mesh is created for rendering purpose for each object of the document but also the dp.drawbrep method for temporary objects in the conduit seems to be more than 10x faster (am I wrong?) than the mesh extraction above. I guess somewhere in the SDK library must be a faster way to get a mesh, even if coarser. Anybody has a hint?
Thanks!
G.
Posts: 4
Participants: 3