|
AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
| ParametricCurve2d (TopoShape edge) | |
| long | GetOwnerId () |
| void | SetOwnerId (long val) |
| boolean | IsValidGeometry () |
| boolean | Initialize (TopoShape edge) |
| boolean | InitializeByLine (GLin2d line) |
| boolean | InitializeBySegment (GPnt2d start, GPnt2d end) |
| boolean | InitializeByCircle (GCirc2d circle) |
| boolean | InitializeByArc (GCirc2d circle, double u1, double u2) |
| boolean | InitializeByHypr (GHypr2d curve, double u1, double u2) |
| boolean | InitializeByParab (GParab2d curve, double u1, double u2) |
| boolean | InitializeByBSpline (GBSplineCurve2d curve) |
| boolean | InitializeByBezier (GBezierCurve2d curve) |
| 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 () |
| GBSplineCurve2d | TryBSplineCurve () |
| GBezierCurve2d | TryBezierCurve () |
Public 成员函数 继承自 ParametricGeometry | |
| long | GetId () |
| void | SetId (long val) |
| TopoShape | GetShape () |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 ParametricGeometry | |
| static GPnt | GetPointValue (TopoShape vertex) |
<>
二维曲线的几何参数表达,用来获取曲线上点、切线等信息。
| ParametricCurve2d.ParametricCurve2d | ( | TopoShape | edge | ) |
使用2D边拓扑对象构造和初始化
| edge | 边 |
| double ParametricCurve2d.ComputeLength | ( | double | u1, |
| double | u2 ) |
计算指定区间的长度
| u1 | 起始参数 |
| u2 | 终止参数 |
| double ParametricCurve2d.ComputePointByDistance | ( | double | u0, |
| double | offset ) |
Compute the point with the distance to u0.
| u0 | the parameter of the start point. |
| offset | the distance. |
| EnumGeometryContinuity ParametricCurve2d.Continuity | ( | ) |
获取连续性
| GPnt2d ParametricCurve2d.D0 | ( | double | u | ) |
Computes the point of parameter U on the curve.
| u | the parameter |
| DerivativeValues2d ParametricCurve2d.D1 | ( | double | u | ) |
Computes the point and derivative of parameter U on the curve.
| u | the parameter |
| DerivativeValues2d ParametricCurve2d.D2 | ( | double | u | ) |
Computes the point and derivative of parameter U on the curve.
| u | the parameter |
| DerivativeValues2d ParametricCurve2d.D3 | ( | double | u | ) |
Computes the point and derivative of parameter U on the curve.
| u | the parameter |
| GVec2d ParametricCurve2d.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 ParametricCurve2d.FirstParameter | ( | ) |
起点参数
| GBBox ParametricCurve2d.GetBBox | ( | ) |
Compute the bounding box.
| EnumCurveType ParametricCurve2d.GetCurveType | ( | ) |
Get the curve type.
enum EnumCurveType
| GPnt2d ParametricCurve2d.GetEndPoint | ( | ) |
获取终点坐标.
| double ParametricCurve2d.GetLength | ( | ) |
计算长度
| GPnt2d ParametricCurve2d.GetStartPoint | ( | ) |
获取起始点坐标.
| boolean ParametricCurve2d.Initialize | ( | TopoShape | edge | ) |
| boolean ParametricCurve2d.Is3DCurve | ( | ) |
Is 3D Curve.
| boolean ParametricCurve2d.IsClosed | ( | ) |
Is Closed.
| boolean ParametricCurve2d.IsPeriodic | ( | ) |
Is Periodic.
| boolean ParametricCurve2d.IsValidGeometry | ( | ) |
Test if valid.
重载 ParametricGeometry .
| double ParametricCurve2d.LastParameter | ( | ) |
终点参数
| GVec2d ParametricCurve2d.Normal | ( | double | u | ) |
计算法向的值
| u | 参数 |
| double ParametricCurve2d.Period | ( | ) |
The period.
| DoubleList ParametricCurve2d.SplitByUniformLength | ( | double | length, |
| double | tolerance ) |
拆分为等长度的线段.
| length | the length of each part. |
| tolerance | 误差 |
| GBezierCurve2d ParametricCurve2d.TryBezierCurve | ( | ) |
转成贝塞尔曲线。转之前调用GetCurveType判断类型
| GBSplineCurve2d ParametricCurve2d.TryBSplineCurve | ( | ) |
转成样条曲线。转之前调用GetCurveType判断类型
| GCirc2d ParametricCurve2d.TryCircle | ( | ) |
转换为圆弧对象
| GElips2d ParametricCurve2d.TryEllipse | ( | ) |
转换为椭圆弧对象
| GHypr2d ParametricCurve2d.TryHyperbola | ( | ) |
转换为双曲线对象
| GLin2d ParametricCurve2d.TryLine | ( | ) |
转换为直线对象
| GParab2d ParametricCurve2d.TryParabola | ( | ) |
转换为抛物线对象
| GPnt2d ParametricCurve2d.Value | ( | double | u | ) |
计算点的值.
| u | the parameter |