AnyCAD Rapid SDK  2020
The Rapid CAD SDK
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
ParametricCurve Class Reference
Inheritance diagram for ParametricCurve:
ParametricGeometry

Public Member Functions

synchronized void delete ()
 
 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 ()
 
double LastParameter ()
 
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)
 
GPnt GetStartPoint ()
 
GPnt GetEndPoint ()
 
GBBox GetBBox ()
 
double GetLength ()
 
DoubleList SplitByUniformLength (double length, double tolerance)
 
GLin TryLine ()
 
GCirc TryCircle ()
 
GElips TryEllipse ()
 
GHypr TryHyperbola ()
 
GParab TryParabola ()
 
- Public Member Functions inherited from ParametricGeometry
synchronized void delete ()
 
long GetId ()
 
void SetId (long val)
 
boolean IsValidGeometry ()
 
boolean Initialize (TopoShape topoShape)
 
TopoShape GetShape ()
 

Protected Member Functions

 ParametricCurve (long cPtr, boolean cMemoryOwn)
 
void swigSetCMemOwn (boolean own)
 
void finalize ()
 
- Protected Member Functions inherited from ParametricGeometry
 ParametricGeometry (long cPtr, boolean cMemoryOwn)
 
void swigSetCMemOwn (boolean own)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (ParametricCurve obj)
 
- Static Protected Member Functions inherited from ParametricGeometry
static long getCPtr (ParametricGeometry obj)
 

Detailed Description


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

Member Function Documentation

int ParametricCurve.Continuity ( )

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

GPnt ParametricCurve.D0 ( double  u)

Computes the point of parameter U on the curve.

Parameters
uthe parameter
Returns
the point.
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
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.
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.
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.
double ParametricCurve.FirstParameter ( )

The first parameter.

GBBox ParametricCurve.GetBBox ( )

Compute the bounding box.

Returns
the box.
EnumCurveType ParametricCurve.GetCurveType ( )

Get the curve type.
enum EnumCurveType

Returns
the point.
GPnt ParametricCurve.GetEndPoint ( )

Get the end point position.

Returns
the end point.
GPnt ParametricCurve.GetStartPoint ( )

Get the start point position.

Returns
the start point.
boolean ParametricCurve.Initialize ( TopoShape  topoShape)

Use TopoShape to initialize the geometry, must be Edge.

Parameters
topoShapethe TopoShape
Returns
true if ok.
boolean ParametricCurve.Is3DCurve ( )

Is 3D Curve.

boolean ParametricCurve.IsClosed ( )

Is Closed.

boolean ParametricCurve.IsCurveOnSurface ( )

Is 3D Curve on surface.

boolean ParametricCurve.IsPeriodic ( )

Is Periodic.

boolean ParametricCurve.IsValidGeometry ( )

Test if valid.

double ParametricCurve.LastParameter ( )

The last parameter.

double ParametricCurve.Period ( )

The period.

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

tolerance.

GPnt ParametricCurve.Value ( double  u)

Computes the point of parameter U on the curve.

Parameters
uthe parameter
Returns
the point.