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

静态 Public 成员函数

static TopoShape MakeVertex (GPnt pt)
 
static TopoShape MakeLine (GPnt start, GPnt end)
 
static TopoShape MakeLine (GLin line, double p1, double p2)
 
static TopoShape MakeCircle (GPnt center, double radius, GDir zdir)
 
static TopoShape MakeCircle (GAx2 location, double radius)
 
static TopoShape MakeCircle (GCirc circle)
 
static TopoShape MakeCircle (GPnt p1, GPnt p2, GPnt p3)
 
static TopoShape MakeEllipse (GPnt center, double majorRadius, double minorRadius, GDir xdir, GDir zdir)
 
static TopoShape MakeEllipse (GAx2 location, double majorRadius, double minorRadius)
 
static TopoShape MakeEllipse (GElips elips)
 
static TopoShape MakeArcOfCircle (GCirc circle, GPnt start, GPnt end)
 
static TopoShape MakeArcOfCircle (GCirc circle, double start, double end)
 
static TopoShape MakeArcOfCircle (GPnt start, GPnt end, GPnt middle)
 
static TopoShape MakeArcOfEllipse (GElips elips, double start, double end)
 
static TopoShape MakeHypr (GHypr hypr, double p1, double p2)
 
static TopoShape MakeParab (GParab parab, double p1, double p2)
 
static TopoShape MakeRectangle (GAx2 coord, double len, double width, double radius, boolean bFilled)
 
static TopoShape MakeRectangleByCenter (GAx2 center, double len, double width, double radius, boolean bFilled)
 
static TopoShape MakePolygon (GAx2 coord, long number, double radius)
 
static TopoShape MakePolygon (GPntList points, boolean bClosed)
 
static TopoShape MakePolyline (GPntList points)
 
static TopoShape MakePolyline (GPntList points, DoubleList bulges, GPnt normal, boolean bClosed)
 
static TopoShape MakePolygon (GPntList points, double radius, boolean bFilled)
 
static TopoShape MakeBSpline (GPntList points, boolean periodicFlag)
 
static TopoShape MakeBSpline (GPntList points)
 
static TopoShape MakeBSpline (GPntList poles, DoubleList parameters, boolean periodicFlag)
 
static TopoShape MakeBSpline (GPntList poles, DoubleList parameters)
 
static TopoShape MakeBSpline (GPntList poles, DoubleList weights, DoubleList knots, Uint32List multiplicities, long degree, boolean periodicFlag, boolean checkRational)
 
static TopoShape MakeBSpline (GPntList poles, DoubleList weights, DoubleList knots, Uint32List multiplicities, long degree, boolean periodicFlag)
 
static TopoShape MakeBSpline (GPntList poles, DoubleList weights, DoubleList knots, Uint32List multiplicities, long degree)
 
static TopoShape MakeBezierCurve (GPntList poles)
 
static TopoShape MakeBezierCurve (GPntList poles, DoubleList weights)
 
static TopoShape MakeSpiral (double radius, double interval, double count, GAx3 ax, boolean reversed)
 
static TopoShape MakeSpiral (double radius, double interval, double count, GAx3 ax)
 
static TopoShape MakeBSplineCurve (TopoShapeList curves, EnumConvertParameterisationType type)
 
static TopoShape MakeBSplineCurve (TopoShapeList curves)
 
static TopoShape MakeBSplineCurve (TopoShape curve, EnumConvertParameterisationType type)
 
static TopoShape MakeBSplineCurve (TopoShape curve)
 
static TopoShape MakeBSplineCurve (TopoShape wire, int closed, EnumConvertParameterisationType type)
 
static TopoShape MakeBSplineCurve (TopoShape wire, int closed)
 
static TopoShape MakeBSplineByCurves (TopoShapeList curves, EnumConvertParameterisationType type)
 
static TopoShape MakeBSplineByCurves (TopoShapeList curves)
 
static TopoShape MakeBSplineByCurve (TopoShape curve, EnumConvertParameterisationType type)
 
static TopoShape MakeBSplineByCurve (TopoShape curve)
 
static TopoShape MakeBSplineByWire (TopoShape wire, int closed, EnumConvertParameterisationType type)
 
static TopoShape MakeBSplineByWire (TopoShape wire, int closed)
 
static TopoShape MakeWire (TopoShape edge)
 
static TopoShape MakeWire (TopoShapeList edges)
 
static TopoShape MakeWire (TopoShape edge1, TopoShape edge2)
 
static TopoShapeList ConnectToWires (TopoShapeList shapes, double tol, boolean sharedVeterx)
 
static TopoShapeList ConnectWiresToWires (TopoShapeList wires, double tol, boolean sharedVeterx)
 
static TopoShapeList ConnectEdgesToWires (TopoShapeList edges, double tol, boolean sharedVeterx)
 
static TopoShapeList ConnectEdgesToWires (TopoShape shape, boolean sharedVeterx, double theAngTol)
 
static TopoShape MakePolygonFace (GPntList points)
 
static TopoShape MakePolygonFace (TopoShapeList wires)
 
static TopoShape MakePolygonFaceByPoints (GPntList points)
 
static TopoShape MakePolygonFaceByWires (TopoShapeList wires)
 
static TopoShape MakePlanarFace (TopoShape wire)
 
static TopoShape MakePlanarFace (GPln plane, double minU, double maxU, double minV, double maxV)
 
static TopoShape MakePlanarFace (GPln plane)
 
static TopoShape TrimCurve (TopoShape curve, double startP, double endP)
 
static TopoShape MakeCurve (ParametricCurve curve, double startU, double lastU)
 
static TopoShape MakeCurveOnSurface (TopoShape curve2d, TopoShape surface)
 
static TopoShape MakeWindingCurve (TopoShape sketchWire, TopoShape surface)
 
static TopoShape MakeTangentLine (TopoShape curve, GPnt nearPt, GPnt pt)
 
static TopoShape MakeTangentLine (TopoShape curve, GPnt nearPt, GLin line, double angle, double length)
 
static GDirList ComputePlaneDirection (TopoShape curve)
 

详细描述

<>
ShapeBuilder 主要用于创建三维点、曲线、平面等。

成员函数说明

◆ ConnectEdgesToWires()

static TopoShapeList CurveBuilder.ConnectEdgesToWires ( TopoShapeList  edges,
double  tol,
boolean  sharedVeterx 
)
static

把Edges首尾连接,生成Wire。Make sure all shapes' type are edge, or shape will be missing

参数
edgesthe edge list.
tolthe tolerance
sharedVeterxis True connection is performed only when adjacent edges share the same vertex.
返回
the connected wire list.

◆ ConnectToWires()

static TopoShapeList CurveBuilder.ConnectToWires ( TopoShapeList  shapes,
double  tol,
boolean  sharedVeterx 
)
static

从shape list中找到首尾连接的Wires集合。only edges and wires will be kept

参数
shapesthe shape list
tolthe tolerance
sharedVeterxis True connection is performed only when adjacent wires share the same vertex.
返回
the connected wire list.

◆ ConnectWiresToWires()

static TopoShapeList CurveBuilder.ConnectWiresToWires ( TopoShapeList  wires,
double  tol,
boolean  sharedVeterx 
)
static

把Wires首尾连接,生成Wire。Make sure all shapes' type are wire, or shape will be missing

参数
wiresthe wire list.
tolthe tolerance
sharedVeterxis True connection is performed only when adjacent wires share the same vertex.
返回
the connected wire list.

◆ MakeArcOfCircle() [1/3]

static TopoShape CurveBuilder.MakeArcOfCircle ( GCirc  circle,
double  start,
double  end 
)
static

创建圆弧.

参数
circlethe circle.
startthe start angle with radians.
endthe end angle with radians.
返回
the arc.

◆ MakeArcOfCircle() [2/3]

static TopoShape CurveBuilder.MakeArcOfCircle ( GCirc  circle,
GPnt  start,
GPnt  end 
)
static

创建圆弧.

参数
circlethe circle.
startthe start point.
endthe end point.
返回
the arc.

◆ MakeArcOfCircle() [3/3]

static TopoShape CurveBuilder.MakeArcOfCircle ( GPnt  start,
GPnt  end,
GPnt  middle 
)
static

创建圆弧.

参数
startthe start point.
endthe end point.
middlethe middle point.
返回
the arc.

◆ MakeArcOfEllipse()

static TopoShape CurveBuilder.MakeArcOfEllipse ( GElips  elips,
double  start,
double  end 
)
static

创建椭圆弧.

参数
elipsthe ellipse object
startthe start angle with radians.
endthe end angle with radians.
返回
the arc curve.

◆ MakeBezierCurve() [1/2]

static TopoShape CurveBuilder.MakeBezierCurve ( GPntList  poles)
static

Creates a non rational Bezier curve with a set of poles. The weights are defaulted to all being 1.

参数
polesthe poles.
返回
the shape.

◆ MakeBezierCurve() [2/2]

static TopoShape CurveBuilder.MakeBezierCurve ( GPntList  poles,
DoubleList  weights 
)
static

Creates a rational Bezier curve with the set of poles and the set of weights.

参数
polesthe poles.
weightsIf all the weights are identical the curve is considered as non rational.
返回
the shape

◆ MakeBSpline() [1/4]

static TopoShape CurveBuilder.MakeBSpline ( GPntList  points)
static

Make BSpline

参数
pointsthe control points.

◆ MakeBSpline() [2/4]

static TopoShape CurveBuilder.MakeBSpline ( GPntList  points,
boolean  periodicFlag 
)
static

Make BSpline

参数
pointsthe control points.
periodicFlagif true the constrained BSpline curve will be periodic and closed.
In this case, the junction point is the first point of the table Points.

◆ MakeBSpline() [3/4]

static TopoShape CurveBuilder.MakeBSpline ( GPntList  poles,
DoubleList  parameters 
)
static

Make BSpline
Warning

  • There must be at least 2 points in the table Points.
  • If PeriodicFlag is false, there must be as
    many parameters in the array Parameters as
    there are points in the array Points.
  • If PeriodicFlag is true, there must be one
    more parameter in the table Parameters: this
    is used to give the parameter on the
    resulting BSpline curve of the junction point
    of the curve (which is also the first point of the table Points).

◆ MakeBSpline() [4/4]

static TopoShape CurveBuilder.MakeBSpline ( GPntList  poles,
DoubleList  parameters,
boolean  periodicFlag 
)
static

Make BSpline
Warning

  • There must be at least 2 points in the table Points.
  • If PeriodicFlag is false, there must be as
    many parameters in the array Parameters as
    there are points in the array Points.
  • If PeriodicFlag is true, there must be one
    more parameter in the table Parameters: this
    is used to give the parameter on the
    resulting BSpline curve of the junction point
    of the curve (which is also the first point of the table Points).

◆ MakeBSplineCurve() [1/2]

static TopoShape CurveBuilder.MakeBSplineCurve ( TopoShape  wire,
int  closed 
)
static

Wire转换为BSpline

参数
wireWire
closed0: 不封闭, 1 闭合到起点 2 闭合到终点
返回
曲线

◆ MakeBSplineCurve() [2/2]

static TopoShape CurveBuilder.MakeBSplineCurve ( TopoShape  wire,
int  closed,
EnumConvertParameterisationType  type 
)
static

Wire转换为BSpline

参数
wireWire
closed0: 不封闭, 1 闭合到起点 2 闭合到终点
返回
曲线

◆ MakeCircle() [1/2]

static TopoShape CurveBuilder.MakeCircle ( GPnt  center,
double  radius,
GDir  zdir 
)
static

创建圆.

参数
centerthe center.
radiusthe radius.
zdirthe direction.
返回
the circle.

◆ MakeCircle() [2/2]

static TopoShape CurveBuilder.MakeCircle ( GPnt  p1,
GPnt  p2,
GPnt  p3 
)
static

创建通过三个点的圆

参数
p1点1
p2点2
p3点3
返回
圆。可能为null。

◆ MakeCurve()

static TopoShape CurveBuilder.MakeCurve ( ParametricCurve  curve,
double  startU,
double  lastU 
)
static

创建曲线

参数
curve曲线
startU起始参数
lastU终止参数
返回
对象

◆ MakeCurveOnSurface()

static TopoShape CurveBuilder.MakeCurveOnSurface ( TopoShape  curve2d,
TopoShape  surface 
)
static

在曲面上创建曲线

参数
curve2dthe trimmed 2d curve defining the ranges of the uv paramters;
surfacethe base surface.
返回
the new curve.

◆ MakeEllipse()

static TopoShape CurveBuilder.MakeEllipse ( GPnt  center,
double  majorRadius,
double  minorRadius,
GDir  xdir,
GDir  zdir 
)
static

创建椭圆.

参数
centerthe center.
majorRadiusthe major radius.
minorRadiusthe minor radius.
xdirthe x direction.
zdirthe y direction.
返回
the ellipse.

◆ MakeHypr()

static TopoShape CurveBuilder.MakeHypr ( GHypr  hypr,
double  p1,
double  p2 
)
static

创建椭圆弧.





返回


Make hyperbola curve.
参数
hyprthe hyperbola object.
p1the first parameter.
p2the second parameter.
返回
the hyperbola curve.

◆ MakeLine() [1/2]

static TopoShape CurveBuilder.MakeLine ( GLin  line,
double  p1,
double  p2 
)
static

创建直线.

参数
linethe line object.
p1the start parameter.
p2the end parameter.
返回
the line shape.

◆ MakeLine() [2/2]

static TopoShape CurveBuilder.MakeLine ( GPnt  start,
GPnt  end 
)
static

创建直线.

参数
startthe start point.
endthe end point.
返回
the line shape.

◆ MakeParab()

static TopoShape CurveBuilder.MakeParab ( GParab  parab,
double  p1,
double  p2 
)
static

Make parabola curve.

参数
parabthe parabola object.
p1the first parameter.
p2the second parameter.
返回
the parabola curve.

◆ MakePlanarFace() [1/3]

static TopoShape CurveBuilder.MakePlanarFace ( GPln  plane)
static

根据平面构造面,无范围限制

参数
plane输入平面
返回
平面

◆ MakePlanarFace() [2/3]

static TopoShape CurveBuilder.MakePlanarFace ( GPln  plane,
double  minU,
double  maxU,
double  minV,
double  maxV 
)
static

根据平面和参数范围构造面

参数
plane输入平面
minU最小u
maxU最大u
minV最小v
maxV最大v
返回
平面

◆ MakePlanarFace() [3/3]

static TopoShape CurveBuilder.MakePlanarFace ( TopoShape  wire)
static

根据曲线构造面

返回
平面

◆ MakePolygon() [1/3]

static TopoShape CurveBuilder.MakePolygon ( GAx2  coord,
long  number,
double  radius 
)
static

Make polygon.

参数
coordthe position and direction.
numberedge count.
radiusradius.
返回
the wire.

◆ MakePolygon() [2/3]

static TopoShape CurveBuilder.MakePolygon ( GPntList  points,
boolean  bClosed 
)
static

Make polygon with points.

参数
pointsthe point list.
bClosedclosed if true.
返回
the shape.

◆ MakePolygon() [3/3]

static TopoShape CurveBuilder.MakePolygon ( GPntList  points,
double  radius,
boolean  bFilled 
)
static

Make polygon with radius angles.

参数
pointsthe point list.
radiusthe radius.
bFilledto face if true.
返回

◆ MakePolygonFace() [1/2]

static TopoShape CurveBuilder.MakePolygonFace ( GPntList  points)
static

构造多边形平面

参数
points顶点
返回

◆ MakePolygonFace() [2/2]

static TopoShape CurveBuilder.MakePolygonFace ( TopoShapeList  wires)
static

构造多边形平面

参数
wiresWire
返回

◆ MakePolygonFaceByPoints()

static TopoShape CurveBuilder.MakePolygonFaceByPoints ( GPntList  points)
static

构造多边形平面

参数
points顶点
返回

◆ MakePolygonFaceByWires()

static TopoShape CurveBuilder.MakePolygonFaceByWires ( TopoShapeList  wires)
static

构造多边形平面

参数
wiresWire
返回

◆ MakePolyline() [1/2]

static TopoShape CurveBuilder.MakePolyline ( GPntList  points)
static

构造仅包含直线段的多段线

参数
points顶点
返回
多段线

◆ MakePolyline() [2/2]

static TopoShape CurveBuilder.MakePolyline ( GPntList  points,
DoubleList  bulges,
GPnt  normal,
boolean  bClosed 
)
static

构造多段线,每段是线段或圆弧

参数
points顶点
bulgesThe tangent of 1/4 of the arc angle or 0 for lines. ccw > 0, cw < 0
返回
Polyline

◆ MakeRectangle()

static TopoShape CurveBuilder.MakeRectangle ( GAx2  coord,
double  len,
double  width,
double  radius,
boolean  bFilled 
)
static

创建圆角矩形

参数
coord起始点
len长度X
width宽度Y
radius圆角半径,可以为0
bFilled是否填充
返回
矩形

◆ MakeRectangleByCenter()

static TopoShape CurveBuilder.MakeRectangleByCenter ( GAx2  center,
double  len,
double  width,
double  radius,
boolean  bFilled 
)
static

以中心绘制矩形

参数
center中心点
len长度X
width宽度Y
radius圆角半径,可以为0
bFilled是否填充
返回
矩形

◆ MakeTangentLine()

static TopoShape CurveBuilder.MakeTangentLine ( TopoShape  curve,
GPnt  nearPt,
GPnt  pt 
)
static

Create line pass thrgouth pt and tangential to curve.

参数
curvethe curve
nearPtthe initial gusss point.
ptthe point on line to be passed.
返回
the line

◆ MakeVertex()

static TopoShape CurveBuilder.MakeVertex ( GPnt  pt)
static

创建三维顶点.

参数
pt位置.
返回
the vertex shape.

◆ MakeWindingCurve()

static TopoShape CurveBuilder.MakeWindingCurve ( TopoShape  sketchWire,
TopoShape  surface 
)
static

创建缠绕曲线

参数
sketchWire输入的草图线
surface曲面
返回
Wire或者Edge

◆ TrimCurve()

static TopoShape CurveBuilder.TrimCurve ( TopoShape  curve,
double  startP,
double  endP 
)
static

创建曲线

参数
curve曲线
startP起始参数
endP终止参数
返回
对象