Create 2d geometry on XOY plane, such as line, polyline, circle, arc, BSpline. 更多...
#include <APIPrimitive2dTools.h>
静态 Public 成员函数 | |
static TopoShape | MakeLine (const Vector2 &startPt, const Vector2 &endPt) |
static TopoShape | MakePolyline (const Vector2List &points) |
static TopoShape | MakePolyline (const Vector2List &points, const FloatList &bulges) |
static TopoShape | MakePolygon (const Vector2List &points) |
static TopoShape | MakeSpline (const Vector2List &points) |
static TopoShape | MakeCircle (const Vector2 ¢erPt, Real radius) |
static TopoShape | MakeArc (const Vector2 ¢erPt, Real radius, const Vector2 &startPt, const Vector2 &endPt) |
static TopoShape | MakeArc (const Vector2 &start, const Vector2 &end, Real bulge, bool bulgeFlag) |
static TopoShape | MakeArc (const Vector2 ¢erPt, Real radius, Real startAngle, Real endAngle) |
static TopoShape | MakeEllipseArc (const Vector2 ¢erPt, const Vector2 &majorPt, Real ratio, Real startAngle, Real endAngle) |
static TopoShape | MakeEllipseArc (const Vector2 ¢erPt, Real majorR, Real minorR, Real startAngle, Real endAngle) |
static TopoShape | ToBSplineCurve (const TopoShape &curve) |
static TopoShape | ToBSplineCurve (const TopoShapeGroup &curves) |
static TopoShape | MakeFace (const TopoShape &wire2d) |
Create 2d geometry on XOY plane, such as line, polyline, circle, arc, BSpline.
TODO:
|
static |
Make 2d circle arc.
centerPt | the center point. |
radius | the radius of the circle. |
startPt | the start position. |
endPt | the end position. |
|
static |
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. |
|
static |
Make 2d circle arc.
centerPt | the center point. |
radius | the radius of the circle. |
startAngle | the start angle. |
endAngle | the end angle. |
|
static |
Make 2d circle.
centerPt | the center point. |
radius | the radius of the circle. |
|
static |
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. |
|
static |
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. |
|
static |
Make 2d line
startPt | the start position |
endPt | the end position. |
|
static |
Make 2d polygon.
points | the points. |
|
static |
Make 2d polyline.
points | the point list. |
|
static |
Make 2d polyline.
points | the point list. |
bulges | the bulges for each point. |
|
static |
Make 2d spline.
points | the point list. |
Convert 2d curve to 2d BSpline.
curve | the 2d curve. |
|
static |
Convert multi 2d curve to 2d BSpline.
curves | the 2d curve list. |