SmApiCreateRotationalSweep#

Defined in SM_API/inc/SmApiBrep.h

SmApiStatus SmApiCreateRotationalSweep(
const SmTArray<SmCurve*> &rCurvesToSweep,
const SmPoint3d &rBasePt,
const SmVector3d &rAxis,
double dAngleDeg,
SmBoolean bCapEnds,
SmBrep *&rpResult,
)#

rCurvesToSweep are copied, not consumed: the caller keeps ownership and the curves are unchanged. The caller owns the new rpResult.

Parameters:
  • rCurvesToSweep – [in ]: Curves to sweep

  • rBasePt – [in ]: Base point of axis

  • rAxis – [in ]: Direction of axis

  • dAngleDeg – [in ]: Angle of rotation

  • bCapEnds – [in ]: Cap the ends of the result

  • rpResult – [out]: Resulting SmBrep