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

Handle_Poly_Triangulation doesn't have Nodes() and Triangles() attributes!

hadi's picture
Forums: 

Hello Everybody!

I triangulated a face using BRepMesh_IncrementalMesh and BRepTool_Triangulation methods as follows:

MyMesher=BRepMesh_IncrementalMesh(Surf1Shape,0.5)
MyMesher.Perform()
MyMesher.Update(Surf1Shape)
ff=MyMesher.IsDone()
Face1Tri=BRep_Tool_Triangulation(TheSurf1,T)

Everything OK till here.

But When I wanna get the nodes or triangles of the created triangulation using the code:

Trian=Face1Tri.Triangles()

PythonOCC says that Handle_Poly_Triangulation doesn't have Nodes() and Triangles() attributes! I checked the Poly_Triangulation class that provides Nodes() and Triangles() functions. But they are provided for Poly_Triangulation class, only.

Any help is appreciated!
H. Parvaz

hadi's picture

SOLVED!

A very simple code Face1Tri.GetObject() provides you the Poly_triangulation where all of triangulation details can be extracted from...