AnyCAD SDK PRO
2020
The Professional Graphics SDK for .Net and C++ Developers
|
Create 2d geometry on XOY plane, such as line, polyline, circle, arc, BSpline. 更多...
Public 成员函数 | |
TopoShape^ | MakeLine (Vector2^ startPt, Vector2^ endPt) |
TopoShape^ | MakePolyline (Vector2List^ points) |
TopoShape^ | MakePolyline (Vector2List^ points, FloatList^ bulges) |
TopoShape^ | MakePolygon (Vector2List^ points) |
TopoShape^ | MakeSpline (Vector2List^ points) |
TopoShape^ | MakeCircle (Vector2^ centerPt, Real radius) |
TopoShape^ | MakeArc (Vector2^ centerPt, Real radius, Vector2^ startPt, Vector2^ endPt) |
TopoShape^ | MakeArc (Vector2^ start, Vector2^ end, Real bulge, bool bulgeFlag) |
TopoShape^ | MakeArc (Vector2^ centerPt, Real radius, Real startAngle, Real endAngle) |
TopoShape^ | MakeEllipseArc (Vector2^ centerPt, Vector2^ majorPt, Real ratio, Real startAngle, Real endAngle) |
TopoShape^ | MakeEllipseArc (Vector2^ centerPt, Real majorR, Real minorR, Real startAngle, Real endAngle) |
TopoShape^ | ToBSplineCurve (TopoShape^ curve) |
TopoShape^ | ToBSplineCurve (TopoShapeGroup^ curves) |
TopoShape^ | MakeFace (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.
centerPt | the center point. |
radius | the radius of the circle. |
startPt | the start position. |
endPt | the end position. |
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeArc | ( | Vector2^ | start, |
Vector2^ | end, | ||
Real | bulge, | ||
bool | bulgeFlag | ||
) |
Make 2d arc by bulge.
start | the start point. |
end | the end point. |
bulge | the tangent of 1/4 of the arc angle or 0 for line. |
bulgeFlag | Bulge is distance if true, or is tangent. |
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeArc | ( | Vector2^ | centerPt, |
Real | radius, | ||
Real | startAngle, | ||
Real | endAngle | ||
) |
Make 2d circle arc.
centerPt | the center point. |
radius | the radius of the circle. |
startAngle | the start angle. |
endAngle | the end angle. |
Make 2d circle.
centerPt | the center point. |
radius | the radius of the circle. |
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeEllipseArc | ( | Vector2^ | centerPt, |
Vector2^ | majorPt, | ||
Real | ratio, | ||
Real | startAngle, | ||
Real | endAngle | ||
) |
Make 2d ellipse arc.
centerPt | the center point. |
majorPt | the major position. |
ratio | the ratio of major radius and minor radius. |
startAngle | the start angle. |
endAngle | the end angle. |
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeEllipseArc | ( | Vector2^ | centerPt, |
Real | majorR, | ||
Real | minorR, | ||
Real | startAngle, | ||
Real | endAngle | ||
) |
Make 2d ellipse arc.
centerPt | the center point. |
majorR | the major radius. |
minorR | the minor radius. |
startAngle | the start angle. |
endAngle | the end angle. |
Create face by 2d wire.
wire2d | the 2d wire. |
Make 2d line
startPt | the start position |
endPt | the end position. |
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakePolygon | ( | Vector2List^ | points | ) |
Make 2d polygon.
points | the points. |
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakePolyline | ( | Vector2List^ | points | ) |
Make 2d polyline.
points | the point list. |
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakePolyline | ( | Vector2List^ | points, |
FloatList^ | bulges | ||
) |
Make 2d polyline.
points | the point list. |
bulges | the bulges for each point. |
TopoShape ^ AnyCAD::Platform::Primitive2dTools::MakeSpline | ( | Vector2List^ | points | ) |
Make 2d spline.
points | the point list. |
Convert 2d curve to 2d BSpline.
curve | the 2d curve. |
TopoShape ^ AnyCAD::Platform::Primitive2dTools::ToBSplineCurve | ( | TopoShapeGroup^ | curves | ) |
Convert multi 2d curve to 2d BSpline.
curves | the 2d curve list. |