pythonocc-core
pythonocc-core copied to clipboard
Normal at given point on surface of solid
Hi,
I have several given points on the surface of an arbitrary solid.
Is there an easier way to get the surface normals at these points than
- Looping over every face of the solid
- Using
GeomAPI_ProjectPointOnSurf()to project the point (that is already on one of the surfaces) onto the current surface - To check if the projected point
GeomAPI_ProjectPointOnSurf.Point()is the original point == its the surface he is lies on - To get the
(u, v)coords of the point viaGeomAPI_ProjectPointOnSurf.LowerDistanceParameters() - To then use
BRepGProp_Face() - To get the normal via
BRepGProp_Face.Normal(u, v)
This seams a bit overkill to me...