pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

Normal at given point on surface of solid

Open EmJay276 opened this issue 2 years ago • 0 comments

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 via GeomAPI_ProjectPointOnSurf.LowerDistanceParameters()
  • To then use BRepGProp_Face()
  • To get the normal via BRepGProp_Face.Normal(u, v)

This seams a bit overkill to me...

EmJay276 avatar Mar 20 '23 17:03 EmJay276