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

静态 Public 成员函数

static TopoShape MakeLine (GPnt2d start, GPnt2d end)
 
static TopoShape MakeLine (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 MakeArc (GCirc2d cirlce, double p1, double p2)
 
static TopoShape MakeArc (GPnt2d center, GPnt2d start, GPnt2d end)
 
static TopoShape MakeArc (GPnt2d center, double radius, GPnt2d start, GPnt2d end)
 
static TopoShape MakeArc (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 MakeHypr (GHypr2d hypr, double p1, double p2)
 
static TopoShape MakeParab (GParab2d parab, double p1, double p2)
 
static TopoShape MakeBSpline (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 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 To3D (TopoShape curve, GPln plane)
 
static TopoShape MakeFace (TopoShape outerwire, TopoShapeList holes)
 
static TopoShape TrimCurve (TopoShape curve, double startP, double endP)
 
static TopoShapeList TrimCurve (TopoShape curve, GPnt2d point)
 
static TopoShapeList Split (TopoShape curve, TopoShape toolCurve, double tol)
 

详细描述

<> 构造平面二维曲线相关的方法

成员函数说明

◆ MakeArc()

static TopoShape Curve2dBuilder.MakeArc ( GCirc2d  cirlce,
double  p1,
double  p2 
)
static

Make arc.

参数
cirlcethe circle object.
p1the first paramter.
p2the second paramter.
返回
the arc.

◆ MakeArcByLines()

static TopoShape Curve2dBuilder.MakeArcByLines ( TopoShape  line1,
TopoShape  line2,
double  radius,
double  tol,
boolean  keepMinor 
)
static

Make arc between two lines.

参数
line1the first line.
line2the second line.
radiusthe radius.
tolthe tolerance.
keepMinorkeep the minor arc.
返回
the arc.

◆ MakeBSpline()

static TopoShape Curve2dBuilder.MakeBSpline ( GPnt2dList  points,
boolean  periodicFlag,
double  tolerance 
)
static

Interpolate a BsplineCurve passing through an array of points, with a C2
Continuity if tangency is not requested at the point.

参数
pointsthe points.
periodicFlagif periodic.
tolerancethe tolerance.
返回
the shape

◆ MakeCircle()

static TopoShape Curve2dBuilder.MakeCircle ( GCirc2d  cirlce)
static

Make circle shape.

参数
cirlcethe circle object.
返回
the shape.

◆ MakeElips()

static TopoShape Curve2dBuilder.MakeElips ( GElips2d  elips)
static

Make ellipse shape.

参数
elipsthe ellipse object.
返回
the ellipse shape.

◆ MakeElipsArc()

static TopoShape Curve2dBuilder.MakeElipsArc ( GElips2d  elips,
double  p1,
double  p2 
)
static

Make ellipse arc.

参数
elipsthe ellipse object.
p1the first parameter.
p2the second parameter.
返回
the ellipse arc.

◆ MakeFace()

static TopoShape Curve2dBuilder.MakeFace ( TopoShape  outerwire,
TopoShapeList  holes 
)
static

创建带孔的面

参数
outerwire面的外轮廓
holes
返回

◆ MakeHypr()

static TopoShape Curve2dBuilder.MakeHypr ( GHypr2d  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 Curve2dBuilder.MakeLine ( GLin2d  line,
double  p1,
double  p2 
)
static

Make line with line objet between two paramters.

参数
linethe line object.
p1the first parameter.
p2the sectiond parameter.
返回
the line shape.

◆ MakeLine() [2/2]

static TopoShape Curve2dBuilder.MakeLine ( GPnt2d  start,
GPnt2d  end 
)
static

Make line with two points.

参数
startthe start position.
endthe end position.
返回
the line.

◆ MakeParab()

static TopoShape Curve2dBuilder.MakeParab ( GParab2d  parab,
double  p1,
double  p2 
)
static

Make parabola curve.

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

◆ MakePolygon()

static TopoShape Curve2dBuilder.MakePolygon ( GPnt2d  center,
GDir2d  dirx,
double  radius,
long  cornerCount 
)
static

构造等边多边形

参数
center中心
dirx起点方向
radius半径
cornerCount个数
返回
Wire

◆ MakePolyline()

static TopoShape Curve2dBuilder.MakePolyline ( GPnt2dList  points)
static

构造多线段

参数
points
返回
Shape

◆ Split()

static TopoShapeList Curve2dBuilder.Split ( TopoShape  curve,
TopoShape  toolCurve,
double  tol 
)
static

使用曲线拆分曲线

参数
curve被拆分的曲线

tol容差
返回
拆分结果

◆ To3D()

static TopoShape Curve2dBuilder.To3D ( TopoShape  curve,
GPln  plane 
)
static

二维曲线转换成平面上的三维曲线

参数
curve二维曲线
plane平面
返回
三维曲线

◆ TrimCurve() [1/2]

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

裁剪曲线

参数
curve2D Curve
startP起始点
endP终止点
返回
新的Curve

◆ TrimCurve() [2/2]

static TopoShapeList Curve2dBuilder.TrimCurve ( TopoShape  curve,
GPnt2d  point 
)
static

使用点分离曲线, 2D版本

参数
curve被分离的曲线
point分离的位置
返回
曲线列表.