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

Base class for 2D curves. More...

Inheritance diagram for cadex.Geom.Curve2d:
cadex.Geom.Geometry cadex.BaseObject cadex.Geom.BSplineCurve2d cadex.Geom.BezierCurve2d cadex.Geom.Conic2d cadex.Geom.Line2d cadex.Geom.OffsetCurve2d cadex.Geom.Circle2d cadex.Geom.Ellipse2d cadex.Geom.Hyperbola2d cadex.Geom.Parabola2d

Public Member Functions

 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.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.Geometry
override void Dispose (bool disposing)
 

Detailed Description

Base class for 2D curves.

2D curves are used to represent curves in surface parametric domains (p-curves). They are used by edges owned by faces.

For detailed description refer to 3D counterpart Curve.

See also
Curves.
Examples
exploring/brep_geometry/Program.cs, and exploring/brep_geometry/main.cxx.

Member Function Documentation

◆ D0()

void cadex.Geom.Curve2d.D0 ( double theParameter,
cadex.Geom.Point2d theValue )
inline

Returns the point theValue of parameter theParam.

Throws exception only for the OffsetCurve if it is not possible to compute the current point. For example when the first derivative on the basis curve and the offset direction are parallel.

◆ D1()

void cadex.Geom.Curve2d.D1 ( double theParameter,
cadex.Geom.Point2d theValue,
cadex.Geom.Vector2d theD1 )
inline

Returns the point theValue of parameter theParam and the first derivative theD1.

Throws exception if the continuity of the curve is not C1.

◆ D2()

void cadex.Geom.Curve2d.D2 ( double theParameter,
cadex.Geom.Point2d theValue,
cadex.Geom.Vector2d theD1,
cadex.Geom.Vector2d theD2 )
inline

Returns the point theValue of parameter theParam and second derivatives theD1 and theD2.

Throws exception if the continuity of the curve is not C2.

◆ Dispose()

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

Reimplemented from cadex.BaseObject.

◆ DN()

bool cadex.Geom.Curve2d.DN ( double theParameter,
uint theDerivativeOrder,
cadex.Geom.Point2d theValue,
cadex.Collections.Vector2dList theD )
inline

Returns true if calculation was passed succsesfully, the returned vectors gives the value of the derivative for the order of derivation theDerivativeOrder. Otherwise returns false. Throws exception if the continuity of the curve is not CN.

Parameters:

  • theDerivativeOrder must belong to range [0, 3].
  • theD should have enough size to store theDerivativeOrder derivatives.

◆ Domain()

void cadex.Geom.Curve2d.Domain ( out double theUMin,
out double theUMax )
inline

Returns a definition domain.

See also
UMin(), UMax().

◆ Transform()

void cadex.Geom.Curve2d.Transform ( cadex.Geom.Transformation2d theTransformation)
inline

Applies transformation matrix to this object.

Results depends on the actual curve type.

See also
Transformed().

◆ Transformed()

cadex.Geom.Curve2d cadex.Geom.Curve2d.Transformed ( cadex.Geom.Transformation2d theTransformation)
inline

Returns a copy this object after applying transformation.

The contents of this object is not modified.

See also
Transform().

◆ UMax()

double cadex.Geom.Curve2d.UMax ( )
inline

Returns a maximum parameter of a definition domain.

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

◆ UMin()

double cadex.Geom.Curve2d.UMin ( )
inline

Returns a minimum parameter of a definition domain.

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

◆ Value()

cadex.Geom.Point2d cadex.Geom.Curve2d.Value ( double theParameter)
inline

Evaluates a point on the curve.

theParameter must be within Domain() if the curve is not periodic.