AnyCAD SDK PRO  2020
The Professional Graphics SDK for .Net and C++ Developers
Public 成员函数 | 所有成员列表
AnyCAD::Platform::Primitive2dTools类 参考

Create 2d geometry on XOY plane, such as line, polyline, circle, arc, BSpline. 更多...

Public 成员函数

TopoShapeMakeLine (Vector2^ startPt, Vector2^ endPt)
 
TopoShapeMakePolyline (Vector2List^ points)
 
TopoShapeMakePolyline (Vector2List^ points, FloatList^ bulges)
 
TopoShapeMakePolygon (Vector2List^ points)
 
TopoShapeMakeSpline (Vector2List^ points)
 
TopoShapeMakeCircle (Vector2^ centerPt, Real radius)
 
TopoShapeMakeArc (Vector2^ centerPt, Real radius, Vector2^ startPt, Vector2^ endPt)
 
TopoShapeMakeArc (Vector2^ start, Vector2^ end, Real bulge, bool bulgeFlag)
 
TopoShapeMakeArc (Vector2^ centerPt, Real radius, Real startAngle, Real endAngle)
 
TopoShapeMakeEllipseArc (Vector2^ centerPt, Vector2^ majorPt, Real ratio, Real startAngle, Real endAngle)
 
TopoShapeMakeEllipseArc (Vector2^ centerPt, Real majorR, Real minorR, Real startAngle, Real endAngle)
 
TopoShapeToBSplineCurve (TopoShape^ curve)
 
TopoShapeToBSplineCurve (TopoShapeGroup^ curves)
 
TopoShapeMakeFace (TopoShape^ wire2d)
 

详细描述

Create 2d geometry on XOY plane, such as line, polyline, circle, arc, BSpline.

TODO:

成员函数说明

TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeArc ( Vector2 centerPt,
Real  radius,
Vector2 startPt,
Vector2 endPt 
)

Make 2d circle arc.

参数
centerPtthe center point.
radiusthe radius of the circle.
startPtthe start position.
endPtthe end position.
返回
the shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeArc ( Vector2 start,
Vector2 end,
Real  bulge,
bool  bulgeFlag 
)

Make 2d arc by bulge.

参数
startthe start point.
endthe end point.
bulgethe tangent of 1/4 of the arc angle or 0 for line.
bulgeFlagBulge is distance if true, or is tangent.
返回
the shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeArc ( Vector2 centerPt,
Real  radius,
Real  startAngle,
Real  endAngle 
)

Make 2d circle arc.

参数
centerPtthe center point.
radiusthe radius of the circle.
startAnglethe start angle.
endAnglethe end angle.
返回
the shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeCircle ( Vector2 centerPt,
Real  radius 
)

Make 2d circle.

参数
centerPtthe center point.
radiusthe radius of the circle.
返回
the shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeEllipseArc ( Vector2 centerPt,
Vector2 majorPt,
Real  ratio,
Real  startAngle,
Real  endAngle 
)

Make 2d ellipse arc.

参数
centerPtthe center point.
majorPtthe major position.
ratiothe ratio of major radius and minor radius.
startAnglethe start angle.
endAnglethe end angle.
返回
the shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeEllipseArc ( Vector2 centerPt,
Real  majorR,
Real  minorR,
Real  startAngle,
Real  endAngle 
)

Make 2d ellipse arc.

参数
centerPtthe center point.
majorRthe major radius.
minorRthe minor radius.
startAnglethe start angle.
endAnglethe end angle.
返回
the shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeFace ( TopoShape wire2d)

Create face by 2d wire.

参数
wire2dthe 2d wire.
返回
the face.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeLine ( Vector2 startPt,
Vector2 endPt 
)

Make 2d line

参数
startPtthe start position
endPtthe end position.
返回
the line shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakePolygon ( Vector2List^  points)

Make 2d polygon.

参数
pointsthe points.
返回
the shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakePolyline ( Vector2List^  points)

Make 2d polyline.

参数
pointsthe point list.
返回
the shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakePolyline ( Vector2List^  points,
FloatList^  bulges 
)

Make 2d polyline.

参数
pointsthe point list.
bulgesthe bulges for each point.
返回
the shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeSpline ( Vector2List^  points)

Make 2d spline.

参数
pointsthe point list.
返回
the shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::ToBSplineCurve ( TopoShape curve)

Convert 2d curve to 2d BSpline.

参数
curvethe 2d curve.
返回
the shape.
TopoShape ^ AnyCAD::Platform::Primitive2dTools::ToBSplineCurve ( TopoShapeGroup curves)

Convert multi 2d curve to 2d BSpline.

参数
curvesthe 2d curve list.
返回
the shape.

该类的文档由以下文件生成: