Hi
Is there a way to get mesh of a bspline object? I have tried to cast both IEntity_DG and its IGeometry to IMesh without luck. And I do not see a method in the interface.
My thinking is that mesh should be there for rendering at least.
Thanks
Accessing mesh
-
- Posts: 121
- Joined: Mon Apr 04, 2016 4:55 am
Re: Accessing mesh
Hi Marco
Not directly. Parametric objects do not keep mesh. Rendering data is stored in the video card memory only.
This is one way to get mesh:
IEntity_DG iEnt = ...;
IEntity_DG iEntMesh = iEnt.Clone();
IGeometry_DG iGeom = iEntMesh.SetGeometryType("Mesh");
IMesh iMesh = iGeom as IMesh;
You could also save the object as vrml or stl. Objects are converted to mesh during export
Regards
Not directly. Parametric objects do not keep mesh. Rendering data is stored in the video card memory only.
This is one way to get mesh:
IEntity_DG iEnt = ...;
IEntity_DG iEntMesh = iEnt.Clone();
IGeometry_DG iGeom = iEntMesh.SetGeometryType("Mesh");
IMesh iMesh = iGeom as IMesh;
You could also save the object as vrml or stl. Objects are converted to mesh during export
Regards