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

Public Member Functions

 ParametricCurve (TopoShape topoEdge)
 
long GetOwnerId ()
 
void SetOwnerId (long val)
 
boolean IsValidGeometry ()
 
boolean Initialize (TopoShape topoShape)
 
EnumCurveType GetCurveType ()
 
boolean Is3DCurve ()
 
boolean IsCurveOnSurface ()
 
double Tolerance ()
 
double FirstParameter ()
 
GPnt FirstPoint ()
 
double LastParameter ()
 
GPnt LastPoint ()
 
int Continuity ()
 
boolean IsClosed ()
 
boolean IsPeriodic ()
 
double Period ()
 
GPnt Value (double u)
 
GPnt D0 (double u)
 
DerivativeValues D1 (double u)
 
DerivativeValues D2 (double u)
 
DerivativeValues D3 (double u)
 
GVec DN (double u, int n)
 
double Curvature (double u)
 
GPnt GetStartPoint ()
 
GPnt GetEndPoint ()
 
GBBox GetBBox ()
 
double GetLength ()
 
double ComputeLength (double u1, double u2)
 
double ComputePointByDistance (double u0, double offset)
 
DoubleList SplitByUniformLength (double length, double tolerance)
 
DoubleList SplitByUniformLength (double length, double u1, double u2, double tolerance)
 
DoubleList SplitByUniformLengthByCount (long count, double u1, double u2, double tolerance)
 
DoubleList SplitByUniformAbscissa (long count)
 
DoubleList SplitByUniformAbscissa (long count, double u1, double u2)
 
DoubleList SplitByTangential (double angular, double curvature)
 
DoubleList SplitByTangential (double angular, double curvature, double u1, double u2)
 
DoubleList SplitByTangential (double angular, double curvature, double u1, double u2, double minLength, int minPointNumber)
 
GLin TryLine ()
 
GCirc TryCircle ()
 
GElips TryEllipse ()
 
GHypr TryHyperbola ()
 
GParab TryParabola ()
 
GBSplineCurve TryBSplineCurve ()
 
GBezierCurve TryBezierCurve ()
 
- Public Member Functions inherited from ParametricGeometry
long GetId ()
 
void SetId (long val)
 
TopoShape GetShape ()
 

Detailed Description

<>
Parametric representation of the curve.

Member Function Documentation

◆ ComputePointByDistance()

double ParametricCurve.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 ParametricCurve.Continuity ( )

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

◆ D0()

GPnt ParametricCurve.D0 ( double  u)

Computes the point of parameter U on the curve.

Parameters
uthe parameter
Returns
the point.

◆ D1()

DerivativeValues ParametricCurve.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()

DerivativeValues ParametricCurve.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()

DerivativeValues ParametricCurve.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()

GVec ParametricCurve.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 ParametricCurve.FirstParameter ( )

The first parameter.

◆ GetBBox()

GBBox ParametricCurve.GetBBox ( )

Compute the bounding box.

Returns
the box.

◆ GetCurveType()

EnumCurveType ParametricCurve.GetCurveType ( )

Get the curve type.
enum EnumCurveType

Returns
the point.

◆ GetEndPoint()

GPnt ParametricCurve.GetEndPoint ( )

Get the end point position.

Returns
the end point.

◆ GetStartPoint()

GPnt ParametricCurve.GetStartPoint ( )

Get the start point position.

Returns
the start point.

◆ Initialize()

boolean ParametricCurve.Initialize ( TopoShape  topoShape)

Use TopoShape to initialize the geometry, must be Edge.

Parameters
topoShapethe TopoShape
Returns
true if ok.

Reimplemented from ParametricGeometry.

◆ Is3DCurve()

boolean ParametricCurve.Is3DCurve ( )

Is 3D Curve.

◆ IsClosed()

boolean ParametricCurve.IsClosed ( )

Is Closed.

◆ IsCurveOnSurface()

boolean ParametricCurve.IsCurveOnSurface ( )

Is 3D Curve on surface.

◆ IsPeriodic()

boolean ParametricCurve.IsPeriodic ( )

Is Periodic.

◆ IsValidGeometry()

boolean ParametricCurve.IsValidGeometry ( )

Test if valid.

Reimplemented from ParametricGeometry.

◆ LastParameter()

double ParametricCurve.LastParameter ( )

The last parameter.

◆ Period()

double ParametricCurve.Period ( )

The period.

◆ SplitByTangential()

DoubleList ParametricCurve.SplitByTangential ( double  angular,
double  curvature 
)

Split the curve by curvature

Parameters
angularthe angle deflection in radians
curvaturelinear deflection
Returns
the parameters of each point.

◆ SplitByUniformAbscissa()

DoubleList ParametricCurve.SplitByUniformAbscissa ( long  count)

Split the curve to equal parts.

Parameters
countthe point count.
Returns
the parameters of each point.

◆ SplitByUniformLength()

DoubleList ParametricCurve.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.

◆ Tolerance()

double ParametricCurve.Tolerance ( )

tolerance.

◆ Value()

GPnt ParametricCurve.Value ( double  u)

Computes the point of parameter U on the curve.

Parameters
uthe parameter
Returns
the point.