AnyCAD Rapid API 2023
Help you to create a better world!
|
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 () |
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 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) |
boolean | IsValidGeometry () |
boolean | Initialize (TopoShape shape) |
TopoShape | GetShape () |
<>
曲线的几何参数表达,用来获取曲线上点、切线等信息。
ParametricCurve.ParametricCurve | ( | TopoShape | edge | ) |
使用对象初始化曲线
edge | 曲线 |
double ParametricCurve.ComputeClosestPoint | ( | GPnt | pt | ) |
计算曲线上最近的点
pt | 点 |
double ParametricCurve.ComputeLength | ( | double | u1, |
double | u2 | ||
) |
计算指定位置间的长度
u1 | 起始参数 |
u2 | 终止参数 |
double ParametricCurve.ComputePointByDistance | ( | double | u0, |
double | distance | ||
) |
Compute the point with the distance to u0.
u0 | the parameter of the start point. |
distance | the distance. |
int ParametricCurve.Continuity | ( | ) |
连续性.
enum:
C0 = 0,
G1,
C1,
G2,
C2,
C3,
CN
double ParametricCurve.Curvature | ( | double | u | ) |
计算曲率
u | 参数位置 |
GPnt ParametricCurve.D0 | ( | double | u | ) |
Computes the point of parameter U on the curve.
u | the parameter |
DerivativeValues ParametricCurve.D1 | ( | double | u | ) |
Computes the point and derivative of parameter U on the curve.
u | the parameter |
DerivativeValues ParametricCurve.D2 | ( | double | u | ) |
Computes the point and derivative of parameter U on the curve.
u | the parameter |
DerivativeValues ParametricCurve.D3 | ( | double | u | ) |
Computes the point and derivative of parameter U on the curve.
u | the parameter |
GVec ParametricCurve.DN | ( | double | u, |
int | n | ||
) |
The returned vector gives the value of the derivative for the order of derivation N.
u | the parameter |
n | the order of derivation |
double ParametricCurve.FirstParameter | ( | ) |
起始参数.
GPnt ParametricCurve.FirstPoint | ( | ) |
起始点
GBBox ParametricCurve.GetBBox | ( | ) |
Compute the bounding box.
EnumCurveType ParametricCurve.GetCurveType | ( | ) |
GPnt ParametricCurve.GetEndPoint | ( | ) |
Get the end point position.
double ParametricCurve.GetLength | ( | ) |
长度
GPnt ParametricCurve.GetStartPoint | ( | ) |
Get the start point position.
boolean ParametricCurve.Initialize | ( | TopoShape | edge | ) |
boolean ParametricCurve.Is3DCurve | ( | ) |
Is 3D Curve.
boolean ParametricCurve.IsClosed | ( | ) |
Is Closed.
boolean ParametricCurve.IsCurveOnSurface | ( | ) |
Is 3D Curve on surface.
boolean ParametricCurve.IsPeriodic | ( | ) |
是否为周期函数.
boolean ParametricCurve.IsValidGeometry | ( | ) |
Test if valid.
重载 ParametricGeometry .
double ParametricCurve.LastParameter | ( | ) |
终点参数
GPnt ParametricCurve.LastPoint | ( | ) |
终点
double ParametricCurve.Period | ( | ) |
周期值.
DoubleList ParametricCurve.SplitByTangential | ( | double | angular, |
double | curvature | ||
) |
根据曲率和角度自动分割曲线,曲率大的地方密一些,曲率小的地方稀一些。
angular | 角度偏转(弧度) |
curvature | 线形偏转 linear deflection |
DoubleList ParametricCurve.SplitByTangential | ( | double | angular, |
double | curvature, | ||
double | u1, | ||
double | u2 | ||
) |
根据曲率和角度自动分割曲线,曲率大的地方密一些,曲率小的地方稀一些。
angular | 角度偏转(弧度) |
curvature | 线形偏转 linear deflection |
u1 | 起始参数 |
u2 | 终止参数 |
DoubleList ParametricCurve.SplitByTangential | ( | double | angular, |
double | curvature, | ||
double | u1, | ||
double | u2, | ||
double | minLength, | ||
int | minPointNumber | ||
) |
根据曲率和角度自动分割曲线,曲率大的地方密一些,曲率小的地方稀一些。
angular | 角度偏转(弧度) |
curvature | 线形偏转 linear deflection |
u1 | 起始参数 |
u2 | 终止参数 |
minLength | 最小长度 |
minPointNumber | 最小点数量 |
DoubleList ParametricCurve.SplitByUniformAbscissa | ( | long | count | ) |
把曲线指定的区间拆分为等长的线段.
count | 点的个数. |
DoubleList ParametricCurve.SplitByUniformAbscissa | ( | long | count, |
double | u1, | ||
double | u2 | ||
) |
指定个数,把曲线指定的区间拆分为等长的线段.
count | 点的个数. |
u1 | 起始参数 |
u2 | 终止参数 |
DoubleList ParametricCurve.SplitByUniformLength | ( | double | length, |
double | tolerance | ||
) |
把曲线拆分为等长的线段.
length | 每段的长度. |
tolerance | 误差 |
DoubleList ParametricCurve.SplitByUniformLength | ( | double | length, |
double | u1, | ||
double | u2, | ||
double | tolerance | ||
) |
把曲线指定的区间拆分为等长的线段.
length | 每段的长度. |
u1 | 起始参数 |
u2 | 终止参数 |
tolerance | 误差 |
DoubleList ParametricCurve.SplitByUniformLengthByCount | ( | long | count, |
double | u1, | ||
double | u2, | ||
double | tolerance | ||
) |
指定个数,把曲线指定的区间拆分为等长的线段.
count | 个数 |
u1 | 起始参数 |
u2 | 终止参数 |
tolerance | 误差 |
double ParametricCurve.Tolerance | ( | ) |
tolerance.
GBezierCurve ParametricCurve.TryBezierCurve | ( | ) |
转成贝塞尔曲线。转之前调用GetCurveType判断类型
GBSplineCurve ParametricCurve.TryBSplineCurve | ( | ) |
转成样条曲线。转之前调用GetCurveType判断类型
GCirc ParametricCurve.TryCircle | ( | ) |
转成圆弧。转之前调用GetCurveType判断类型
GElips ParametricCurve.TryEllipse | ( | ) |
转成椭圆弧。转之前调用GetCurveType判断类型
GHypr ParametricCurve.TryHyperbola | ( | ) |
转成双曲线。转之前调用GetCurveType判断类型
GLin ParametricCurve.TryLine | ( | ) |
转成线。转之前调用GetCurveType判断类型
GParab ParametricCurve.TryParabola | ( | ) |
转成抛物线。转之前调用GetCurveType判断类型
GPnt ParametricCurve.Value | ( | double | u | ) |
Computes the point of parameter U on the curve.
u | the parameter |