For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Creating Geom_Surface from Poly_Triangulation

Roi Berlin's picture

Is there a way to create a Geom_Surface object using only the Poly_Triangulation data?
The Poly_Triangulation data was create from Geom_BSplineSurface / Geom_Plane Triangulation

The Triangulation code (shape is TopoDS_Shape)
double const deflection = 0.0001;
double const angulardeflection = 0.0001;
BRepMesh_IncrementalMesh discr(shape, deflection, Standard_False, angulardeflection);
TopoDS_Face meshFace = TopoDS::Face(discr.Shape());
TopLoc_Location loc;
Handle(Poly_Triangulation) triangulation = BRep_Tool::Triangulation(meshFace, loc);