Python: NURBSSurface to Surface / Normal

Using Python.

How do I get the normal of a planar NURBS surface? Is this possible?

Also how to I convert a planar NURBS surface to a regular surface so the normal can be accessed?

Hi Mike - if you use GetPoint() you can then use Surface.ClosestPoint, which will get you the parameters at that point, then Surface.NormalAt(parU, parV)
See also Surfsace.FrameAt()

-Pascal

Thanks. Is there anyway to convert a planar NURBS surface to a regular surface object?

I just noticed the NormalAt() method. Can I use that and pass 0,0 as the u,v parameters? I’m assuming here that u and v are relative to the NURBS surface object. Is that correct?

Hi Mike - you’ll need a valid pair of parameters for the surface - 0,0 might or might not be in the surface domain - probably more relaible to get the surface domain in U and V and use domainU.Min and domainV.min.

-Pascal

1 Like