SmApiCreateSurfaceRevolution#

Defined in SM_API/inc/SmApiSurfaces.h

SmApiStatus SmApiCreateSurfaceRevolution(
SmBSplineCurve *rCurve,
const SmPoint3d &rOrigin,
const SmVector3d &rAxisDir,
double dAngleDeg,
SmSurface *&rpResult,
)#

Revolves rCurve into a temporary Brep and returns only the first surface of that Brep; any other surfaces are deleted with it. The revolve splits the profile at interior tangent (C1) discontinuities and revolves each piece separately, so a profile with a kink can give more than one surface. For such profiles use SmApiCreateRotationalSweep, which returns the whole Brep.

Parameters:
  • rCurve – [in ]: Generation curve

  • rOrigin – [in ]: Origin of axis of revolution

  • rAxisDir – [in ]: Axis of revolution

  • dAngleDeg – [in ]: Angle of revolution

  • rpResult – [out]: Resulting SmSurface