AnyCAD Rapid API 2023
Help you to create a better world!
ParametricCurve2d Class Reference
Inheritance diagram for ParametricCurve2d:
ParametricGeometry

Public Member Functions

 ParametricCurve2d (TopoShape topoEdge)
 
long GetOwnerId ()
 
void SetOwnerId (long val)
 
boolean IsValidGeometry ()
 
boolean Initialize (TopoShape topoShape)
 
EnumCurveType GetCurveType ()
 
boolean Is3DCurve ()
 
double FirstParameter ()
 
double LastParameter ()
 
int Continuity ()
 
boolean IsClosed ()
 
boolean IsPeriodic ()
 
double Period ()
 
GPnt2d Value (double u)
 
GPnt2d D0 (double u)
 
DerivativeValues2d D1 (double u)
 
DerivativeValues2d D2 (double u)
 
DerivativeValues2d D3 (double u)
 
GVec2d DN (double u, int n)
 
GPnt2d GetStartPoint ()
 
GPnt2d GetEndPoint ()
 
GBBox GetBBox ()
 
double GetLength ()
 
double ComputeLength (double u1, double u2)
 
double ComputePointByDistance (double u0, double offset)
 
DoubleList SplitByUniformLength (double length, double tolerance)
 
GLin2d TryLine ()
 
GCirc2d TryCircle ()
 
GElips2d TryEllipse ()
 
GHypr2d TryHyperbola ()
 
GParab2d TryParabola ()
 
- Public Member Functions inherited from ParametricGeometry
long GetId ()
 
void SetId (long val)
 
TopoShape GetShape ()
 

Detailed Description

<>
BSpline Curve tool that can be used to construct BSpline and get BSpline information.

Member Function Documentation

◆ ComputePointByDistance()

double ParametricCurve2d.ComputePointByDistance ( double  u0,
double  offset 
)

Compute the point with the distance to u0.

Parameters
u0the parameter of the start point.
offsetthe distance.

Returns
the parameter of the point. retun u0 if not found.

◆ Continuity()

int ParametricCurve2d.Continuity ( )

Continuity.
enum:
C0 = 0,
G1,
C1,
G2,
C2,
C3,
CN

◆ D0()

GPnt2d ParametricCurve2d.D0 ( double  u)

Computes the point of parameter U on the curve.

Parameters
uthe parameter
Returns
the point.

◆ D1()

DerivativeValues2d ParametricCurve2d.D1 ( double  u)

Computes the point and derivative of parameter U on the curve.

Parameters
uthe parameter
Returns
the point and the first derivative. Empty if not C1

◆ D2()

DerivativeValues2d ParametricCurve2d.D2 ( double  u)

Computes the point and derivative of parameter U on the curve.

Parameters
uthe parameter
Returns
the point, the first and second derivative. Empty if not C2.

◆ D3()

DerivativeValues2d ParametricCurve2d.D3 ( double  u)

Computes the point and derivative of parameter U on the curve.

Parameters
uthe parameter
Returns
the point, the first, the second and the third derivative. Empty if not C3.

◆ DN()

GVec2d ParametricCurve2d.DN ( double  u,
int  n 
)

The returned vector gives the value of the derivative for the order of derivation N.

Parameters
uthe parameter
nthe order of derivation
Returns
the vector. Return zero if not CN or N < 1.

◆ FirstParameter()

double ParametricCurve2d.FirstParameter ( )

The first parameter.

◆ GetBBox()

GBBox ParametricCurve2d.GetBBox ( )

Compute the bounding box.

Returns
the box.

◆ GetCurveType()

EnumCurveType ParametricCurve2d.GetCurveType ( )

Get the curve type.
enum EnumCurveType

Returns
the point.

◆ GetEndPoint()

GPnt2d ParametricCurve2d.GetEndPoint ( )

Get the end point position.

Returns
the end point.

◆ GetStartPoint()

GPnt2d ParametricCurve2d.GetStartPoint ( )

Get the start point position.

Returns
the start point.

◆ Initialize()

boolean ParametricCurve2d.Initialize ( TopoShape  topoShape)

Use TopoShape to initialize the geometry, must be Edge.

Parameters
topoShapethe TopoShape
Returns
true if ok.

Reimplemented from ParametricGeometry.

◆ Is3DCurve()

boolean ParametricCurve2d.Is3DCurve ( )

Is 3D Curve.

◆ IsClosed()

boolean ParametricCurve2d.IsClosed ( )

Is Closed.

◆ IsPeriodic()

boolean ParametricCurve2d.IsPeriodic ( )

Is Periodic.

◆ IsValidGeometry()

boolean ParametricCurve2d.IsValidGeometry ( )

Test if valid.

Reimplemented from ParametricGeometry.

◆ LastParameter()

double ParametricCurve2d.LastParameter ( )

The last parameter.

◆ Period()

double ParametricCurve2d.Period ( )

The period.

◆ SplitByUniformLength()

DoubleList ParametricCurve2d.SplitByUniformLength ( double  length,
double  tolerance 
)

Split the curve to equal parts.

Parameters
lengththe length of each part.
tolerancethe tolerance
Returns
the parameters of each part.

◆ Value()

GPnt2d ParametricCurve2d.Value ( double  u)

Computes the point of parameter U on the curve.

Parameters
uthe parameter
Returns
the point.