RC: Evaluate Surface

Hi,

I need to evaluate normal at (u,v) coordinates for surface. I am using Surface.NormalAt().
However I noticed that direction of the Normal is not changing when ‘flipping’ surface via normal Rhino Command ‘Direction’.
Any hint how to correlate direction of the Normal with direction shown via ‘Direction’ command in Rhino?

Thanks,
Dmitriy

Hi Dmitry

Check BrepFace.OrientationIsReversed.

http://developer.rhino3d.com/api/RhinoCommon/html/P_Rhino_Geometry_BrepFace_OrientationIsReversed.htm

It believe flipping the surface sets this flag and does not change the surface structure.

-Willem

Thanks @Willem

Exactly what I was looking for.
Works perfectly!

Thx,
Dmitriy

1 Like