I want to have my Triangle mesh class,
the first problem is how to construst Poly_Triangulation object from STL file?
Thanks for your response.

Patrik Mueller's picture


I'm not sure what you mean since STL files consists of triangles?
Do you have an import problem or how to convert STL to "Poly_Triangulation"?

Best regards,

Patrik Müller

j-lin's picture

How to convert STL to "Poly_Triangulation"?

Patrik Mueller's picture


I haven't work with Poly_Triangulation - but in the CDL are the definitions.
One is:
Create(Nodes: Array1OfPnt from TColgp;
Triangles: Array1OfTriangle from Poly)

So read the STL file - build the two arrays and create the Triangulation.

Patirk Müller