Hide menu
Loading...
Searching...
No Matches

Defines 2D B-Spline curve. More...

Inheritance diagram for cadex.Geom.BSplineCurve2d:
cadex.Geom.Curve2d cadex.Geom.Geometry cadex.BaseObject

Public Member Functions

 BSplineCurve2d (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 BSplineCurve2d (cadex.Collections.Point2dList thePoles, cadex.Collections.DoubleList theKnots, cadex.Collections.IntList theMultiplicities, int theDegree, bool theIsPeriodic)
 Constructor.
 
 BSplineCurve2d (cadex.Collections.Point2dList thePoles, cadex.Collections.DoubleList theKnots, cadex.Collections.IntList theMultiplicities, int theDegree)
 
 BSplineCurve2d (cadex.Collections.Point2dList thePoles, cadex.Collections.DoubleList thePoleWeights, cadex.Collections.DoubleList theKnots, cadex.Collections.IntList theMultiplicities, int theDegree, bool theIsPeriodic)
 Constructor.
 
 BSplineCurve2d (cadex.Collections.Point2dList thePoles, cadex.Collections.DoubleList thePoleWeights, cadex.Collections.DoubleList theKnots, cadex.Collections.IntList theMultiplicities, int theDegree)
 
int Degree ()
 Returns degree.
 
int NumberOfKnots ()
 Returns number of unique knots.
 
int NumberOfPoles ()
 Returns number of poles.
 
double Knot (int theIndex)
 Returns a knot value.
 
cadex.Collections.DoubleList Knots ()
 Populates a vector of knots.
 
int Multiplicity (int theIndex)
 Returns a knot multiplicity.
 
cadex.Collections.IntList Multiplicities ()
 Populates a vector of knot multiplicities.
 
cadex.Geom.Point2d Pole (int theIndex)
 Returns a pole value.
 
cadex.Collections.Point2dList Poles ()
 Populates a vector of poles.
 
double Weight (int theIndex)
 Returns a weight value.
 
cadex.Collections.DoubleList Weights ()
 Populates a vector of weights.
 
bool IsRational ()
 Returns true if the B-Spline curve is rational (i.e. has weights).
 
- Public Member Functions inherited from cadex.Geom.Curve2d
 Curve2d (global::System.IntPtr cPtr, bool cMemoryOwn)
 
cadex.Geom.CurveType Type ()
 Returns a curve type.
 
cadex.Geom.Continuity Continuity ()
 Returns a continuity type of the curve.
 
cadex.Geom.Point2d Value (double theParameter)
 Evaluates a point on the curve.
 
cadex.Geom.Direction2d Normal (double theParameter)
 Returns the normal direction theNormal of parameter theParam.
 
double Curvature (double theParameter)
 Returns the curvature value of parameter theParam.
 
double UMin ()
 Returns a minimum parameter of a definition domain.
 
double UMax ()
 Returns a maximum parameter of a definition domain.
 
void Domain (out double theUMin, out double theUMax)
 Returns a definition domain.
 
bool IsTrimmed ()
 Returns whether curve is trimmed or not.
 
void SetTrim (double theFirst, double theLast)
 Trims curve with [theFirst, theLast] section.
 
void D0 (double theParameter, cadex.Geom.Point2d theValue)
 Returns the point theValue of parameter theParam.
 
void D1 (double theParameter, cadex.Geom.Point2d theValue, cadex.Geom.Vector2d theD1)
 Returns the point theValue of parameter theParam and the first derivative theD1.
 
void D2 (double theParameter, cadex.Geom.Point2d theValue, cadex.Geom.Vector2d theD1, cadex.Geom.Vector2d theD2)
 Returns the point theValue of parameter theParam and second derivatives theD1 and theD2.
 
bool DN (double theParameter, uint theDerivativeOrder, cadex.Geom.Point2d theValue, cadex.Collections.Vector2dList theD)
 
void Transform (cadex.Geom.Transformation2d theTransformation)
 Applies transformation matrix to this object.
 
cadex.Geom.Curve2d Transformed (cadex.Geom.Transformation2d theTransformation)
 Returns a copy this object after applying transformation.
 
- Public Member Functions inherited from cadex.Geom.Geometry
 Geometry (global::System.IntPtr cPtr, bool cMemoryOwn)
 
- Public Member Functions inherited from cadex.BaseObject
 BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool IsNull ()
 
ulong Id ()
 Return unique identifier of public object.
 
bool IsEqual (cadex.BaseObject theObj)
 
override int GetHashCode ()
 
override bool Equals (System.Object o)
 

Static Public Member Functions

static new bool CompareType (cadex.BaseObject theObject)
 
static cadex.Geom.BSplineCurve2d Cast (cadex.Geom.Curve2d theBase)
 
- Static Public Member Functions inherited from cadex.Geom.Curve2d
static new bool CompareType (cadex.BaseObject theObject)
 
static cadex.Geom.Curve2d Cast (cadex.Geom.Geometry theBase)
 
- Static Public Member Functions inherited from cadex.Geom.Geometry
static bool CompareType (cadex.BaseObject theObject)
 
static cadex.Geom.Geometry Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from cadex.Geom.Curve2d
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from cadex.Geom.Geometry
override void Dispose (bool disposing)
 

Detailed Description

Defines 2D B-Spline curve.

For detailed description refer to 3D counterpart BSplineCurve.

Examples
exploring/brep_geometry/Program.cs, and exploring/brep_geometry/main.cxx.

Constructor & Destructor Documentation

◆ BSplineCurve2d() [1/2]

cadex.Geom.BSplineCurve2d.BSplineCurve2d ( cadex.Collections.Point2dList thePoles,
cadex.Collections.DoubleList theKnots,
cadex.Collections.IntList theMultiplicities,
int theDegree,
bool theIsPeriodic )
inline

Constructor.

Creates a polynomial B-Spline curve.

Parameters:

  • theNumberOfPoles defines the length of thePoles and must be >=2;
  • theNumberOfKnots defines the length of theKnots and theMultiplicities and must be >=2;
  • theDegree must belong to range [1, 25];
  • theIsPeriodic specifies if the B-Spline is periodic.

theNumberOfPoles must meet the requirements described for Geom.BSplineCurve.

◆ BSplineCurve2d() [2/2]

cadex.Geom.BSplineCurve2d.BSplineCurve2d ( cadex.Collections.Point2dList thePoles,
cadex.Collections.DoubleList thePoleWeights,
cadex.Collections.DoubleList theKnots,
cadex.Collections.IntList theMultiplicities,
int theDegree,
bool theIsPeriodic )
inline

Constructor.

Creates a rational B-Spline curve.

Parameters:

  • theNumberOfPoles defines the length of thePoles and thePoleWeights and must be >=2;
  • theNumberOfKnots defines the length of theKnots and theMultiplicities and must be >=2;
  • theDegree must belong to range [1, 25];
  • theIsPeriodic specifies if the B-Spline is periodic.

theNumberOfPoles must meet the requirements described for Geom.BSplineCurve.

Poles are to be provided after division by their weights.

Member Function Documentation

◆ Degree()

int cadex.Geom.BSplineCurve2d.Degree ( )
inline

Returns degree.

Returns the value specified in the constructor.

Examples
exploring/brep_geometry/Program.cs, and exploring/brep_geometry/main.cxx.

◆ Dispose()

override void cadex.Geom.BSplineCurve2d.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.BaseObject.

◆ IsRational()

bool cadex.Geom.BSplineCurve2d.IsRational ( )
inline

Returns true if the B-Spline curve is rational (i.e. has weights).

See also
Weight().

◆ Knot()

double cadex.Geom.BSplineCurve2d.Knot ( int theIndex)
inline

Returns a knot value.

theIndex must be in the range [1, NumberOfKnots()].

See also
Multiplicity().
Examples
exploring/brep_geometry/Program.cs, and exploring/brep_geometry/main.cxx.

◆ Knots()

cadex.Collections.DoubleList cadex.Geom.BSplineCurve2d.Knots ( )
inline

Populates a vector of knots.

theKnots must point to a buffer in memory with at least NumberOfKnots() preallocated values.

Returns NumberOfKnots().

See also
Multiplicities().

◆ Multiplicities()

cadex.Collections.IntList cadex.Geom.BSplineCurve2d.Multiplicities ( )
inline

Populates a vector of knot multiplicities.

theMultiplicities must point to a buffer in memory with at least NumberOfKnots() preallocated values.

Returns NumberOfKnots().

See also
Knots().

◆ Multiplicity()

int cadex.Geom.BSplineCurve2d.Multiplicity ( int theIndex)
inline

Returns a knot multiplicity.

theIndex must be in the range [1, NumberOfKnots()].

See also
Knot().
Examples
exploring/brep_geometry/Program.cs, and exploring/brep_geometry/main.cxx.

◆ NumberOfKnots()

int cadex.Geom.BSplineCurve2d.NumberOfKnots ( )
inline

Returns number of unique knots.

Returns the value specified in the constructor.

Examples
exploring/brep_geometry/Program.cs, and exploring/brep_geometry/main.cxx.

◆ NumberOfPoles()

int cadex.Geom.BSplineCurve2d.NumberOfPoles ( )
inline

Returns number of poles.

Returns the value specified in the constructor.

Examples
exploring/brep_geometry/Program.cs, and exploring/brep_geometry/main.cxx.

◆ Pole()

cadex.Geom.Point2d cadex.Geom.BSplineCurve2d.Pole ( int theIndex)
inline

Returns a pole value.

theIndex must be in the range [1, NumberOfPoles()].

See also
Weight().
Examples
exploring/brep_geometry/Program.cs, and exploring/brep_geometry/main.cxx.

◆ Poles()

cadex.Collections.Point2dList cadex.Geom.BSplineCurve2d.Poles ( )
inline

Populates a vector of poles.

thePoles must point to a buffer in memory with at least NumberOfPoles() preallocated values.

Returns NumberOfPoles().

See also
Weights().

◆ Weight()

double cadex.Geom.BSplineCurve2d.Weight ( int theIndex)
inline

Returns a weight value.

theIndex must be in the range [1, NumberOfPoles()].

For polynomial B-Spline behavior is undefined.

See also
Pole().
Examples
exploring/brep_geometry/Program.cs, and exploring/brep_geometry/main.cxx.

◆ Weights()

cadex.Collections.DoubleList cadex.Geom.BSplineCurve2d.Weights ( )
inline

Populates a vector of weights.

theWeights must point to a buffer in memory with at least NumberOfPoles() preallocated values.

Returns NumberOfPoles().

For polynomial B-Spline does nothing and returns 0.

See also
Poles().