Projecting a Curve onto a Surface
The function
MbResultType SurfaceBoundContour( const MbSurface & surface,
const MbCurve3D & spaceCurve,
VERSION version,
MbContour *& result );
constructs a two-dimensional curve in the parameter space of a surface for a space curve lying on that surface.
The input parameters of the function are:
surface — a surface;
spaceCurve — a space curve;
version — a construction version.
The output parameter of the function is the constructed composite curve result.
Upon successful completion, the function returns rt_Success; otherwise, it returns an error code from the enumeration MbResultType.
The function is declared in the file action_curve.h.
The space curve must lie on the surface surface. The curve result is constructed in the parameter space of the surface surface. Figure shows an example of projecting the space curve spaceCurve onto the given surface: