Compute triangles normals from Topological Surface

Hello,

The Poly_Triangulation::ComputeNormals() seems to be computing normals on each node by a simple average.

Would it be possible to compute them from the underlying brep surface ?

I believe this would lead to better quality normals (and also display), by taking the "ideal" normal rather than a meshing-dependant one. Thanks for your insights !

gkv311 n's picture

Take a look at BRepLib_ToolTriangulatedShape::ComputeNormals() (in older OCCT - StdPrs_ToolTriangulatedShape)

Antoine H's picture

So simple, worked like a charm. Thanks a bunch.