SplinePatch

Engine/source/math/mSplinePatch.h

Base class for spline patches.

More...

Protected Functions

Public Functions

calc(F32 t, Point3F & result)

Recalc function.

calc(Point3F * points, F32 t, Point3F & result)

Recalc function.

setControlPoint(Point3F & point, S32 index)

If you have a preconstructed "SplCtrlPts" class, submit it with this function.

Detailed Description

Base class for spline patches.

The only child of this class is QuadPatch.

Spline utility class for drawing nice pretty splines. In order to draw a spline, you need to create a SplCtrlPts data structure, which contains all control points on the spline. See SplCtrlPts for more information on how to submit points to the spline utility. Next, submit the SplCtrlPts structure to the spline utility.

SplinePatch patch;
patch.submitControlPoints(ctrlPts);
Next, use the SplineUtil namespace to draw your spline.
SplineUtil::drawSplineBeam(camPos, numSegments, width, patch[, uvOffset, numTexRep]);

You can also create a SplineBeamInfo structure (SplineUtil::SplineBeamInfo) and just pass the SplineBeamInfo structure to the SplineUtil::drawSplineBeam function.

see:

SplineUtil

Private Attributes

SplCtrlPts mControlPoints 
U32 mNumReqControlPoints 

Protected Functions

setNumReqControlPoints(U32 numPts)

Public Functions

SplinePatch()

calc(F32 t, Point3F & result)

Recalc function.

Do not call this ever - only SplineUtil needs this.

see:

SplineUtil

Reimplemented by: QuadPatch

calc(Point3F * points, F32 t, Point3F & result)

Recalc function.

Do not call this ever - only SplineUtil needs this.

see:

SplineUtil

Reimplemented by: QuadPatch

getControlPoint(U32 index)

getControlPoints()

getNumReqControlPoints()

setControlPoint(Point3F & point, S32 index)

Reimplemented by: QuadPatch

submitControlPoints(SplCtrlPts & points)

If you have a preconstructed "SplCtrlPts" class, submit it with this function.

Reimplemented by: QuadPatch