How to compute surface normals of a multiple-face brep?

Is there a way to get the normal vector at a point on a multiple-face brep? I found that for single-face
breps, there is a function Rhino.SurfaceNormal(), but it doesn’t seem to work for multiple-face breps.

I think in Rhinoscript, you will have to use Rhino.ExplodePolysurfaces first, and then iterate over the resulting surfaces

use
Rhino.BrepClosestPoint (strObject, arrPoint [, blnFaces])

you might want to restrict to faces (blnFace = true)
and then
Check the result - Array, Element 3

Hi everyone, thanks, that solved the problem :slight_smile: