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

Public 成员函数

 ParametricCurve (TopoShape edge)
 
long GetOwnerId ()
 
void SetOwnerId (long val)
 
boolean IsValidGeometry ()
 
boolean Initialize (TopoShape edge)
 
EnumCurveType GetCurveType ()
 
boolean Is3DCurve ()
 
boolean IsCurveOnSurface ()
 
double Tolerance ()
 
double FirstParameter ()
 
GPnt FirstPoint ()
 
double LastParameter ()
 
GPnt LastPoint ()
 
EnumGeometryContinuity 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 distance)
 
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 ()
 
double ComputeClosestPoint (GPnt pt)
 
- Public 成员函数 继承自 ParametricGeometry
long GetId ()
 
void SetId (long val)
 
TopoShape GetShape ()
 

额外继承的成员函数

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

详细描述

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

构造及析构函数说明

◆ ParametricCurve()

ParametricCurve.ParametricCurve ( TopoShape edge)

使用对象初始化曲线

参数
edge曲线

成员函数说明

◆ ComputeClosestPoint()

double ParametricCurve.ComputeClosestPoint ( GPnt pt)

计算曲线上最近的点

参数
pt
返回
曲线参数

◆ ComputeLength()

double ParametricCurve.ComputeLength ( double u1,
double u2 )

计算指定位置间的长度

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

◆ ComputePointByDistance()

double ParametricCurve.ComputePointByDistance ( double u0,
double distance )

Compute the point with the distance to u0.

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

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

◆ Continuity()

EnumGeometryContinuity ParametricCurve.Continuity ( )

获取连续性

返回
EnumGeometryContinuity

◆ Curvature()

double ParametricCurve.Curvature ( double u)

计算曲率

参数
u参数位置
返回
曲率

◆ D0()

GPnt ParametricCurve.D0 ( double u)

Computes the point of parameter U on the curve.

参数
uthe parameter
返回
the point.

◆ D1()

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

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

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

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

起始参数.

返回
参数

◆ FirstPoint()

GPnt ParametricCurve.FirstPoint ( )

起始点

返回

◆ GetBBox()

GBBox ParametricCurve.GetBBox ( )

Compute the bounding box.

返回
the box.

◆ GetCurveType()

EnumCurveType ParametricCurve.GetCurveType ( )

获取曲线类型.

参见
EnumCurveType
返回
类型.

◆ GetEndPoint()

GPnt ParametricCurve.GetEndPoint ( )

Get the end point position.

返回
the end point.

◆ GetLength()

double ParametricCurve.GetLength ( )

长度

返回
长度

◆ GetStartPoint()

GPnt ParametricCurve.GetStartPoint ( )

Get the start point position.

返回
the start point.

◆ Initialize()

boolean ParametricCurve.Initialize ( TopoShape edge)

使用边对象来初始化,必须为边.

参数
edge
返回
true if ok.

重载 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 ( )

是否为周期函数.

◆ IsValidGeometry()

boolean ParametricCurve.IsValidGeometry ( )

Test if valid.

重载 ParametricGeometry .

◆ LastParameter()

double ParametricCurve.LastParameter ( )

终点参数

返回
参数

◆ LastPoint()

GPnt ParametricCurve.LastPoint ( )

终点

返回

◆ Period()

double ParametricCurve.Period ( )

周期值.

◆ SplitByTangential() [1/3]

DoubleList ParametricCurve.SplitByTangential ( double angular,
double curvature )

根据曲率和角度自动分割曲线,曲率大的地方密一些,曲率小的地方稀一些。

参数
angular角度偏转(弧度)
curvature线形偏转 linear deflection
返回
分割每一段的参数列表。

◆ SplitByTangential() [2/3]

DoubleList ParametricCurve.SplitByTangential ( double angular,
double curvature,
double u1,
double u2 )

根据曲率和角度自动分割曲线,曲率大的地方密一些,曲率小的地方稀一些。

参数
angular角度偏转(弧度)
curvature线形偏转 linear deflection
u1起始参数
u2终止参数
返回
分割每一段的参数列表。

◆ SplitByTangential() [3/3]

DoubleList ParametricCurve.SplitByTangential ( double angular,
double curvature,
double u1,
double u2,
double minLength,
int minPointNumber )

根据曲率和角度自动分割曲线,曲率大的地方密一些,曲率小的地方稀一些。

参数
angular角度偏转(弧度)
curvature线形偏转 linear deflection
u1起始参数
u2终止参数
minLength最小长度
minPointNumber最小点数量
返回
分割每一段的参数列表。

◆ SplitByUniformAbscissa() [1/2]

DoubleList ParametricCurve.SplitByUniformAbscissa ( long count)

把曲线指定的区间拆分为等长的线段.

参数
count点的个数.
返回
分割每一段的参数列表。

◆ SplitByUniformAbscissa() [2/2]

DoubleList ParametricCurve.SplitByUniformAbscissa ( long count,
double u1,
double u2 )

指定个数,把曲线指定的区间拆分为等长的线段.

参数
count点的个数.
u1起始参数
u2终止参数
返回
分割每一段的参数列表。

◆ SplitByUniformLength() [1/2]

DoubleList ParametricCurve.SplitByUniformLength ( double length,
double tolerance )

把曲线拆分为等长的线段.

参数
length每段的长度.
tolerance误差
返回
分割每一段的参数列表。使用GetValue(u)获取点的值

◆ SplitByUniformLength() [2/2]

DoubleList ParametricCurve.SplitByUniformLength ( double length,
double u1,
double u2,
double tolerance )

把曲线指定的区间拆分为等长的线段.

参数
length每段的长度.
u1起始参数
u2终止参数
tolerance误差
返回
分割每一段的参数列表。

◆ SplitByUniformLengthByCount()

DoubleList ParametricCurve.SplitByUniformLengthByCount ( long count,
double u1,
double u2,
double tolerance )

指定个数,把曲线指定的区间拆分为等长的线段.

参数
count个数
u1起始参数
u2终止参数
tolerance误差
返回
分割每一段的参数列表。

◆ Tolerance()

double ParametricCurve.Tolerance ( )

tolerance.

◆ TryBezierCurve()

GBezierCurve ParametricCurve.TryBezierCurve ( )

转成贝塞尔曲线。转之前调用GetCurveType判断类型

返回
对象

◆ TryBSplineCurve()

GBSplineCurve ParametricCurve.TryBSplineCurve ( )

转成样条曲线。转之前调用GetCurveType判断类型

返回
对象

◆ TryCircle()

GCirc ParametricCurve.TryCircle ( )

转成圆弧。转之前调用GetCurveType判断类型

返回
对象

◆ TryEllipse()

GElips ParametricCurve.TryEllipse ( )

转成椭圆弧。转之前调用GetCurveType判断类型

返回
对象

◆ TryHyperbola()

GHypr ParametricCurve.TryHyperbola ( )

转成双曲线。转之前调用GetCurveType判断类型

返回
对象

◆ TryLine()

GLin ParametricCurve.TryLine ( )

转成线。转之前调用GetCurveType判断类型

返回
对象

◆ TryParabola()

GParab ParametricCurve.TryParabola ( )

转成抛物线。转之前调用GetCurveType判断类型

返回
对象

◆ Value()

GPnt ParametricCurve.Value ( double u)

Computes the point of parameter U on the curve.

参数
uthe parameter
返回
the point.