AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
ParametricCurve2d类 参考
类 ParametricCurve2d 继承关系图:
ParametricGeometry

Public 成员函数

 ParametricCurve2d (TopoShape edge)
 
long GetOwnerId ()
 
void SetOwnerId (long val)
 
boolean IsValidGeometry ()
 
boolean Initialize (TopoShape edge)
 
EnumCurveType GetCurveType ()
 
boolean Is3DCurve ()
 
double FirstParameter ()
 
double LastParameter ()
 
EnumGeometryContinuity Continuity ()
 
boolean IsClosed ()
 
boolean IsPeriodic ()
 
double Period ()
 
GPnt2d Value (double u)
 
GVec2d Normal (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 成员函数 继承自 ParametricGeometry
long GetId ()
 
void SetId (long val)
 
TopoShape GetShape ()
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 ParametricGeometry
static GPnt GetPointValue (TopoShape vertex)
 

详细描述

<>
二维曲线的几何参数表达,用来获取曲线上点、切线等信息。

构造及析构函数说明

◆ ParametricCurve2d()

ParametricCurve2d.ParametricCurve2d ( TopoShape edge)

使用2D边拓扑对象构造和初始化

参数
edge

成员函数说明

◆ ComputeLength()

double ParametricCurve2d.ComputeLength ( double u1,
double u2 )

计算指定区间的长度

参数
u1起始参数
u2终止参数
返回
长度

◆ ComputePointByDistance()

double ParametricCurve2d.ComputePointByDistance ( double u0,
double offset )

Compute the point with the distance to u0.

参数
u0the parameter of the start point.
offsetthe distance.

返回
the parameter of the point. retun u0 if not found.

◆ Continuity()

EnumGeometryContinuity ParametricCurve2d.Continuity ( )

获取连续性

返回
EnumGeometryContinuity

◆ D0()

GPnt2d ParametricCurve2d.D0 ( double u)

Computes the point of parameter U on the curve.

参数
uthe parameter
返回
the point.

◆ D1()

DerivativeValues2d ParametricCurve2d.D1 ( double u)

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

参数
uthe parameter
返回
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.

参数
uthe parameter
返回
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.

参数
uthe parameter
返回
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.

参数
uthe parameter
nthe order of derivation
返回
the vector. Return zero if not CN or N < 1.

◆ FirstParameter()

double ParametricCurve2d.FirstParameter ( )

起点参数

返回
参数

◆ GetBBox()

GBBox ParametricCurve2d.GetBBox ( )

Compute the bounding box.

返回
the box.

◆ GetCurveType()

EnumCurveType ParametricCurve2d.GetCurveType ( )

Get the curve type.
enum EnumCurveType

返回
the point.

◆ GetEndPoint()

GPnt2d ParametricCurve2d.GetEndPoint ( )

获取终点坐标.

返回
the end point.

◆ GetLength()

double ParametricCurve2d.GetLength ( )

计算长度

返回
长度

◆ GetStartPoint()

GPnt2d ParametricCurve2d.GetStartPoint ( )

获取起始点坐标.

返回
the start point.

◆ Initialize()

boolean ParametricCurve2d.Initialize ( TopoShape edge)

使用2D的边来初始化对象.

参数
edge
返回
true if ok.

重载 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.

重载 ParametricGeometry .

◆ LastParameter()

double ParametricCurve2d.LastParameter ( )

终点参数

返回
参数

◆ Normal()

GVec2d ParametricCurve2d.Normal ( double u)

计算法向的值

参数
u参数
返回
法向

◆ Period()

double ParametricCurve2d.Period ( )

The period.

◆ SplitByUniformLength()

DoubleList ParametricCurve2d.SplitByUniformLength ( double length,
double tolerance )

拆分为等长度的线段.

参数
lengththe length of each part.
tolerance误差
返回
the parameters of each part.

◆ TryCircle()

GCirc2d ParametricCurve2d.TryCircle ( )

转换为圆弧对象

返回
对象

◆ TryEllipse()

GElips2d ParametricCurve2d.TryEllipse ( )

转换为椭圆弧对象

返回
对象

◆ TryHyperbola()

GHypr2d ParametricCurve2d.TryHyperbola ( )

转换为双曲线对象

返回
对象

◆ TryLine()

GLin2d ParametricCurve2d.TryLine ( )

转换为直线对象

返回
对象

◆ TryParabola()

GParab2d ParametricCurve2d.TryParabola ( )

转换为抛物线对象

返回
对象

◆ Value()

GPnt2d ParametricCurve2d.Value ( double u)

计算点的值.

参数
uthe parameter
返回
the point.