Oh I have not yet really tried the new 0.5 but thank you for this, it will be very helpful.


Le 27/01/2011 17:16, Thomas Paviot a écrit :
There were many changes to the OCC.MSH.Mesh module from 0.4 to 0.5 in that purpose. Actually, I noticed that the 0.4 algorithm was buggy while trying your occray program : some triangles and normals were wrong, and the output picture was sometimes ugly. I worked hard to fix these issues, and your occray should benefit from using the QuickTriangleMesh class (there's no need for you to compute vertices, faces indices or normals, everything is done out of the box. For instance:

my_mesh = QuickTriangleMesh(()
my_mesh.set_shape(any_topods_shape)
my_mesh.compute()
vertices = my_mesh.get_vertices()
normals = my_mesh.get_normals()
faces_indices = my_mesh.get_faces()

Thomas


_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to