NURBSCurve Class Reference

#include <NURBSCurve.h>

Inheritance diagram for NURBSCurve:

Public Member Functions

Result< void > Init (Int points, Int degree, NURBSCURVE_CONTINUITY continuity)
 
void SetContinuity (NURBSCURVE_CONTINUITY continuity)
 
Result< VectorEvaluateAt (Float s)
 
Result< VectorEvaluateAt (Float u, Int span)
 
Result< VectorDeriveAt (Float s)
 
Result< VectorDeriveAt (Float u, Int span)
 
- Public Member Functions inherited from BaseNURBSCurve
Result< void > Init (Int pcnt, Int degree)
 
void Reset ()
 
Result< void > ChangeDegree (Int newDegree, NURBSCURVE_KNOTMODE knotMode=NURBSCURVE_KNOTMODE::CLAMPED_UNIFORM)
 
Result< VectorEvaluateAt (Float s)
 
Result< VectorEvaluateAt (Float u, Int span)
 
Result< VectorDeriveAt (Float s)
 
Result< VectorDeriveAt (Float u, Int span)
 
Result< IntGetDegree ()
 
Result< IntGetMaxDegree ()
 
Result< IntGetPointCount ()
 
Result< IntGetWeightCount ()
 
Result< IntGetKnotCount ()
 
Result< KnotInfoGetKnotInfo (Int i)
 
Result< VectorGetPoint (Int i)
 
Result< FloatGetWeight (Int i)
 
Result< FloatGetKnot (Int i)
 
Result< void > SetPoint (Int i, const Vector &point)
 
Result< void > SetPoints (const BaseArray< Vector > &points)
 
Result< void > SetWeight (Int i, Float weight)
 
Result< void > SetWeights (const BaseArray< Float > &weights)
 
Result< void > SetKnot (Int i, Float knot)
 
Result< void > SetKnots (NURBSCURVE_KNOTMODE mode)
 
Result< void > SetKnots (const BaseArray< Float > &knots)
 
Result< void > InsertKnot (Float s, Int nTimes)
 
Result< void > InsertKnot (Float u, Int span, Int nTimes)
 
Float GetUmin ()
 
Float GetUmax ()
 
Result< IntFindSpan (Float u)
 
Float MapStoU (Float s)
 
Float MapUtoS (Float u)
 

Private Member Functions

Result< void > DirtDevil ()
 

Private Attributes

NURBSCURVE_CONTINUITY _continuity
 
BaseNURBSCurve _curve
 

Additional Inherited Members

- Protected Member Functions inherited from BaseNURBSCurve
Result< void > _CheckForKnotConsistency ()
 
Result< void > _InitKnots (NURBSCURVE_KNOTMODE mode)
 
Result< void > _ComputeBasisFunctions (Float u, Int span, Int maxDegree)
 
Result< Vector4d_ComputeHomogeneousC (Float u, Int span, Int degree)
 
- Protected Attributes inherited from BaseNURBSCurve
Int _curveDegree
 
BaseArray< Vector4d_points
 
BaseArray< Float_knots
 
Bool _dirty
 
Bool _memInit
 

Member Function Documentation

◆ Init()

Result<void> Init ( Int  points,
Int  degree,
NURBSCURVE_CONTINUITY  continuity 
)

◆ SetContinuity()

void SetContinuity ( NURBSCURVE_CONTINUITY  continuity)

◆ EvaluateAt() [1/2]

Result<Vector> EvaluateAt ( Float  s)

◆ EvaluateAt() [2/2]

Result<Vector> EvaluateAt ( Float  u,
Int  span 
)

◆ DeriveAt() [1/2]

Result<Vector> DeriveAt ( Float  s)

◆ DeriveAt() [2/2]

Result<Vector> DeriveAt ( Float  u,
Int  span 
)

◆ DirtDevil()

Result<void> DirtDevil ( )
private

Member Data Documentation

◆ _continuity

NURBSCURVE_CONTINUITY _continuity
private

◆ _curve

BaseNURBSCurve _curve
private