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

Public Member Functions

synchronized void delete ()
 
 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 ()
 
DoubleList SplitByUniformLength (double length, double tolerance)
 
GLin2d TryLine ()
 
GCirc2d TryCircle ()
 
GElips2d TryEllipse ()
 
GHypr2d TryHyperbola ()
 
GParab2d 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

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

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

GPnt2d ParametricCurve2d.D0 ( double  u)

Computes the point of parameter U on the curve.

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

The first parameter.

GBBox ParametricCurve2d.GetBBox ( )

Compute the bounding box.

Returns
the box.
EnumCurveType ParametricCurve2d.GetCurveType ( )

Get the curve type.
enum EnumCurveType

Returns
the point.
GPnt2d ParametricCurve2d.GetEndPoint ( )

Get the end point position.

Returns
the end point.
GPnt2d ParametricCurve2d.GetStartPoint ( )

Get the start point position.

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

Use TopoShape to initialize the geometry, must be Edge.

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

Is 3D Curve.

boolean ParametricCurve2d.IsClosed ( )

Is Closed.

boolean ParametricCurve2d.IsPeriodic ( )

Is Periodic.

boolean ParametricCurve2d.IsValidGeometry ( )

Test if valid.

double ParametricCurve2d.LastParameter ( )

The last parameter.

double ParametricCurve2d.Period ( )

The period.

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.
GPnt2d ParametricCurve2d.Value ( double  u)

Computes the point of parameter U on the curve.

Parameters
uthe parameter
Returns
the point.