Thu, 06/27/2013 - 12:55
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
Thu, 06/27/2013 - 15:14
SOLVED!
A very simple code Face1Tri.GetObject() provides you the Poly_triangulation where all of triangulation details can be extracted from...