|
AnyCAD Rapid API 2025
Help you to create a better world!
|
静态 Public 成员函数 | |
| static TopoShape | MakeLine (GPnt2d start, GPnt2d end) |
| static TopoShape | MakeLineByPoints (GPnt2d start, GPnt2d end) |
| static TopoShape | MakeLine (GLin2d line, double p1, double p2) |
| static TopoShape | MakeLineByParameters (GLin2d line, double p1, double p2) |
| static TopoShape | MakeArcByLines (TopoShape line1, TopoShape line2, double radius, double tol, boolean keepMinor) |
| static TopoShape | MakeCircle (GCirc2d cirlce) |
| static TopoShape | MakePolygon (GPnt2d center, GDir2d dirx, double radius, long cornerCount) |
| static TopoShape | MakePolyline (GPnt2dList points) |
| static TopoShape | MakePolylineByBulges (GPnt2dList points, DoubleList bulges, boolean bClosed) |
| static TopoShape | MakeArc (GCirc2d cirlce, double p1, double p2) |
| static TopoShape | MakeArcByAngle (GCirc2d cirlce, double p1, double p2) |
| static TopoShape | MakeArc (GPnt2d center, GPnt2d start, GPnt2d end) |
| static TopoShape | MakeArcBy2Points (GPnt2d center, GPnt2d start, GPnt2d end) |
| static TopoShape | MakeArc (GPnt2d center, double radius, GPnt2d start, GPnt2d end) |
| static TopoShape | MakeArcByPoints (GPnt2d center, double radius, GPnt2d start, GPnt2d end) |
| static TopoShape | MakeArc (GPnt2d start, GPnt2d end, double bulge) |
| static TopoShape | MakeArcByBulge (GPnt2d start, GPnt2d end, double bulge) |
| static TopoShape | MakeArcBy3Points (GPnt2d start, GPnt2d end, GPnt2d middle) |
| static TopoShape | MakeElips (GElips2d elips) |
| static TopoShape | MakeElipsArc (GElips2d elips, double p1, double p2) |
| static TopoShape | MakeElipsArc (GElips2d elips, GPnt2d p1, GPnt2d p2) |
| static TopoShape | MakeHypr (GHypr2d hypr, double p1, double p2) |
| static TopoShape | MakeHypr (GHypr2d hypr, GPnt2d p1, GPnt2d p2) |
| static TopoShape | MakeParab (GParab2d parab, double p1, double p2) |
| static TopoShape | MakeParab (GParab2d parab, GPnt2d p1, GPnt2d p2) |
| static TopoShape | MakeBSpline (GPnt2dList points, boolean periodicFlag, double tolerance) |
| static TopoShape | MakeBSplineByPoints (GPnt2dList points, boolean periodicFlag, double tolerance) |
| static TopoShape | MakeBSpline (GPnt2dList poles, DoubleList knots, Uint32List multiplicities, long degree, boolean periodicFlag) |
| static TopoShape | MakeBSpline (GPnt2dList poles, DoubleList knots, Uint32List multiplicities, long degree) |
| static TopoShape | MakeBSplineByPoles (GPnt2dList poles, DoubleList knots, Uint32List multiplicities, long degree, boolean periodicFlag) |
| static TopoShape | MakeBSpline (GPnt2dList poles, DoubleList weights, DoubleList knots, Uint32List multiplicities, long degree, boolean periodicFlag) |
| static TopoShape | MakeBSpline (GPnt2dList poles, DoubleList weights, DoubleList knots, Uint32List multiplicities, long degree) |
| static TopoShape | MakeBSplineByWeights (GPnt2dList poles, DoubleList weights, DoubleList knots, Uint32List multiplicities, long degree, boolean periodicFlag) |
| static TopoShape | MakeBSplineByPoints (GPnt2dList points, int minDeg, int maxDeg, EnumGeometryContinuity continuity, double tolerance) |
| static TopoShape | To3D (TopoShape curve, GPln plane) |
| static TopoShape | MakeCurve2D (TopoShape curve, GPln plane) |
| static TopoShape | MakeFace (TopoShape outerwire, TopoShapeList holes) |
| static TopoShape | TrimCurve (TopoShape curve, double startP, double endP) |
| static TopoShape | TrimCurveByParameters (TopoShape curve, double startP, double endP) |
| static TopoShapeList | TrimCurve (TopoShape curve, GPnt2d point) |
| static TopoShapeList | TrimCurveByPoint (TopoShape curve, GPnt2d point) |
| static TopoShapeList | Split (TopoShape curve, TopoShape toolCurve, double tol) |
| static TopoShapeList | OffsetWire (TopoShape wire2d, double offset, EnumGeomJoinType jointType, boolean hasSelfIntersected) |
| static TopoShapeList | OffsetWire (TopoShape wire2d, double offset, EnumGeomJoinType jointType) |
| static TopoShape | OffsetCircle (TopoShape circ2d, double offset) |
| static TopoShapeList | OffsetWireByDirection (TopoShape wire2d, double offset, EnumGeomJoinType jointType, EnumOffsetDirection direction, boolean hasSelfIntersected) |
| static TopoShapeList | OffsetWireByDirection (TopoShape wire2d, double offset, EnumGeomJoinType jointType, EnumOffsetDirection direction) |
<> 构造平面二维曲线相关的方法
构造圆弧.
| cirlce | the circle object. |
| p1 | the first paramter. |
| p2 | the second paramter. |
|
static |
构造圆弧.
| center | the center. |
| radius | the radius. |
| start | the start position. |
| end | the end position. |
构造圆弧.
| center | the center. |
| start | the start position. |
| end | the end position. |
构造圆弧bulge.
| start | the start position. |
| end | the end position. |
| bulge | the bulge. |
|
static |
Make arc between two lines.
| line1 | the first line. |
| line2 | the second line. |
| radius | the radius. |
| tol | the tolerance. |
| keepMinor | keep the minor arc. |
|
static |
Interpolate a BsplineCurve passing through an array of points, with a C2
Continuity if tangency is not requested at the point.
| points | the points. |
| periodicFlag | if periodic. |
| tolerance | the tolerance. |
|
static |
Interpolate a BsplineCurve passing through an array of points, with a C2
Continuity if tangency is not requested at the point.
| poles | the poles. |
| knots | the knots. |
| multiplicities | the multiplicities. |
| degree | the degree. |
|
static |
Interpolate a BsplineCurve passing through an array of points, with a C2
Continuity if tangency is not requested at the point.
| poles | the poles. |
| knots | the knots. |
| multiplicities | the multiplicities. |
| degree | the degree. |
| periodicFlag | if periodic. |
|
static |
Interpolate a BsplineCurve passing through an array of points, with a C2
Continuity if tangency is not requested at the point.
| poles | the poles. |
| weights | the weights. |
| knots | the knots. |
| multiplicities | the multiplicities. |
| degree | the degree. |
|
static |
Interpolate a BsplineCurve passing through an array of points, with a C2
Continuity if tangency is not requested at the point.
| poles | the poles. |
| weights | the weights. |
| knots | the knots. |
| multiplicities | the multiplicities. |
| degree | the degree. |
| periodicFlag | if periodic. |
|
static |
使用点拟合B样条曲线
| points | 输入点 |
| minDeg | 拟合曲线的最小度数 |
| maxDeg | 拟合曲线的最大度数 |
| continuity | 连续性 |
| tolerance | 容差 |
Make circle shape.
| cirlce | the circle object. |
三维曲线转为二维曲线
| curve | 曲线 |
Make ellipse shape.
| elips | the ellipse object. |
Make ellipse arc.
| elips | the ellipse object. |
| p1 | the first parameter. |
| p2 | the second parameter. |
Make ellipse arc.
| elips | the ellipse object. |
| p1 | the first point. |
| p2 | the second point. |
|
static |
创建带孔的面
| outerwire | 面的外轮廓 |
| holes | 孔 |
Make hyperbola curve.
| hypr | the hyperbola object. |
| p1 | the first parameter. |
| p2 | the second parameter. |
Make hyperbola curve.
| hypr | the hyperbola object. |
| p1 | the first point. |
| p2 | the second point. |
Make line with line objet between two paramters.
| line | the line object. |
| p1 | the first parameter. |
| p2 | the sectiond parameter. |
Make line with two points.
| start | the start position. |
| end | the end position. |
Make parabola curve.
| parab | the parabola object. |
| p1 | the first parameter. |
| p2 | the second parameter. |
Make parabola curve.
| parab | the parabola object. |
| p1 | the first point. |
| p2 | the second point. |
|
static |
构造等边多边形
| center | 中心 |
| dirx | 起点方向 |
| radius | 半径 |
| cornerCount | 个数 |
|
static |
构造多线段
| points | 点 |
|
static |
构造多段线,每段是线段或圆弧
| points | 顶点列表 |
| bulges | The tangent of 1/4 of the arc angle or 0 for lines. ccw 大于 0, cw 小于 0 |
| bClosed | 是否闭合 |
对单个平面圆进行offset
| circ2d | shapeType应为Edge,表示一个平面的整圆 |
| offset | 偏移距离,circ2d逆时针构造时,offset大于0表示向内偏移 |
|
static |
对只包含直线与圆弧的平面wire进行offset
| wire2d | 要求表示平面wire(坐标Z将被忽略),且只包含直线与圆弧 |
| offset | 偏移距离,大于0时表示沿wire前进方向的左侧偏移 |
| jointType | 相邻段偏移后的连接方式 |
|
static |
对只包含直线与圆弧的平面wire进行offset
| wire2d | 要求表示平面wire(坐标Z将被忽略),且只包含直线与圆弧 |
| offset | 偏移距离,大于0时表示沿wire前进方向的左侧偏移 |
| jointType | 相邻段偏移后的连接方式 |
| hasSelfIntersected | 输入的wire是否自交,默认为false |
|
static |
对只包含直线与圆弧的平面wire进行offset
| wire2d | 要求表示平面wire(坐标Z将被忽略),且只包含直线与圆弧 |
| offset | 偏移距离(不决定偏移方向) |
| jointType | 相邻段偏移后的连接方式 |
| direction | 偏移方向 |
|
static |
对只包含直线与圆弧的平面wire进行offset
| wire2d | 要求表示平面wire(坐标Z将被忽略),且只包含直线与圆弧 |
| offset | 偏移距离(不决定偏移方向) |
| jointType | 相邻段偏移后的连接方式 |
| direction | 偏移方向 |
| hasSelfIntersected | 输入的wire是否自交,默认为false |
|
static |
使用曲线拆分曲线
| curve | 被拆分的曲线 |
| tol | 容差 |
二维曲线转换成平面上的三维曲线
| curve | 二维曲线 |
| plane | 平面 |
裁剪曲线
| curve | 2D Curve |
| startP | 起始点 |
| endP | 终止点 |
|
static |
使用点分离曲线, 2D版本
| curve | 被分离的曲线 |
| point | 分离的位置 |