AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
静态 Public 成员函数 | 所有成员列表
AnyCAD::API::Primitive2dTools类 参考

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 &centerPt, Real radius)
 
static TopoShape MakeArc (const Vector2 &centerPt, 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 &centerPt, Real radius, Real startAngle, Real endAngle)
 
static TopoShape MakeEllipseArc (const Vector2 &centerPt, const Vector2 &majorPt, Real ratio, Real startAngle, Real endAngle)
 
static TopoShape MakeEllipseArc (const Vector2 &centerPt, 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 TopoShape AnyCAD::API::Primitive2dTools::MakeArc ( const Vector2 centerPt,
Real  radius,
const Vector2 startPt,
const Vector2 endPt 
)
static

Make 2d circle arc.

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

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.
static TopoShape AnyCAD::API::Primitive2dTools::MakeArc ( const Vector2 centerPt,
Real  radius,
Real  startAngle,
Real  endAngle 
)
static

Make 2d circle arc.

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

Make 2d circle.

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

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.
static TopoShape AnyCAD::API::Primitive2dTools::MakeEllipseArc ( const Vector2 centerPt,
Real  majorR,
Real  minorR,
Real  startAngle,
Real  endAngle 
)
static

Make 2d ellipse arc.

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

Create face by 2d wire.

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

Make 2d line

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

Make 2d polygon.

参数
pointsthe points.
返回
the shape.
static TopoShape AnyCAD::API::Primitive2dTools::MakePolyline ( const Vector2List points)
static

Make 2d polyline.

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

Make 2d polyline.

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

Make 2d spline.

参数
pointsthe point list.
返回
the shape.
static TopoShape AnyCAD::API::Primitive2dTools::ToBSplineCurve ( const TopoShape curve)
static

Convert 2d curve to 2d BSpline.

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

Convert multi 2d curve to 2d BSpline.

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

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