Class NURBSCurve2
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class NURBSCurve2 : BaseCurve2, IParametricCurve2d
Constructors
NURBSCurve2()
Declaration
NURBSCurve2(Int32, Vector2d[], Double[], Int32, Boolean, Boolean)
Declaration
public NURBSCurve2(int numCtrlPoints, Vector2d[] ctrlPoint, double[] ctrlWeight, int degree, bool loop, bool open)
Parameters
NURBSCurve2(Int32, Vector2d[], Double[], Int32, Boolean, Double[], Boolean)
Declaration
public NURBSCurve2(int numCtrlPoints, Vector2d[] ctrlPoint, double[] ctrlWeight, int degree, bool loop, double[] knot, bool bIsInteriorKnot = true)
Parameters
Fields
is_closed
Declaration
Field Value
mBasis
Declaration
protected BSplineBasis mBasis
Field Value
mCtrlPoint
Declaration
protected Vector2d[] mCtrlPoint
Field Value
mCtrlWeight
Declaration
protected double[] mCtrlWeight
Field Value
mLoop
Declaration
Field Value
mNumCtrlPoints
Declaration
protected int mNumCtrlPoints
Field Value
mReplicate
Declaration
Field Value
Properties
ArcLength
Declaration
public double ArcLength { get; }
Property Value
HasArcLength
Declaration
public bool HasArcLength { get; }
Property Value
IsClosed
Declaration
public bool IsClosed { get; set; }
Property Value
Declaration
public bool IsTransformable { get; }
Property Value
ParamLength
Declaration
public double ParamLength { get; }
Property Value
Methods
Clone()
Declaration
public IParametricCurve2d Clone()
Returns
CreateControl(Vector2d[], Double[])
Declaration
protected void CreateControl(Vector2d[] ctrlPoint, double[] ctrlWeight)
Parameters
Get(Double, ref NURBSCurve2.CurveDerivatives)
Declaration
public void Get(double t, ref NURBSCurve2.CurveDerivatives result)
Parameters
GetBasis()
Declaration
public BSplineBasis GetBasis()
Returns
GetContinuousParamIntervals()
Declaration
public List<double> GetContinuousParamIntervals()
Returns
GetControlPoint(Int32)
Declaration
public Vector2d GetControlPoint(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetControlWeight(Int32)
Declaration
public double GetControlWeight(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetDegree()
Declaration
Returns
GetFirstDerivative(Double)
Declaration
public override Vector2d GetFirstDerivative(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Overrides
GetKnot(Int32)
Declaration
public double GetKnot(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
GetNumCtrlPoints()
Declaration
public int GetNumCtrlPoints()
Returns
GetParamIntervals()
Declaration
public List<double> GetParamIntervals()
Returns
GetPosition(Double)
Declaration
public override Vector2d GetPosition(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Overrides
GetSecondDerivative(Double)
Declaration
public override Vector2d GetSecondDerivative(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Overrides
GetThirdDerivative(Double)
Declaration
public override Vector2d GetThirdDerivative(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Overrides
Declaration
Returns
Reverse()
Declaration
SampleArcLength(Double)
Declaration
public Vector2d SampleArcLength(double a)
Parameters
Type |
Name |
Description |
Double |
a |
|
Returns
SampleT(Double)
Declaration
public Vector2d SampleT(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
SetControlPoint(Int32, Vector2d)
Declaration
public void SetControlPoint(int i, Vector2d ctrl)
Parameters
SetControlWeight(Int32, Double)
Declaration
public void SetControlWeight(int i, double weight)
Parameters
SetKnot(Int32, Double)
Declaration
public void SetKnot(int i, double value)
Parameters
TangentT(Double)
Declaration
public Vector2d TangentT(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Declaration
public void Transform(ITransform2 xform)
Parameters
Implements