SmApiTurnToNurbs#
Defined in SM_API/inc/SmApiBrep.h
-
SmApiStatus SmApiTurnToNurbs(SmBrep *pBrep)#
Replaces every analytic / periodic surface in
pBrep(cylinder, cone, sphere, torus, plane) with an equivalent NURBS surface in place. No-op on already-NURBS surfaces.Analytic surfaces, lines and circles are copied exactly from their NURBS form. Offset surfaces and other edge curves are approximated, and face UV trim curves are removed (later operations regenerate them).
This operation can replace and delete Surface and Curve objects owned by
pBrep. Callers must discard any cached pointers to Brep-owned geometry before the call, then reacquire them from their surviving Face or Edge.- Parameters:
pBrep – [in/out]: Pointer to brep