AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIPrimitive2dTools.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIPrimitive2dTools_H_
4 #define _APIPrimitive2dTools_H_
5 
6 #include "APIObjectDef.h"
7 
8 namespace AnyCAD{ namespace API
9 {
10  class TopoShape;
11  class TopoShapeGroup;
20  {
22  public:
29  static TopoShape MakeLine (const Vector2& startPt, const Vector2& endPt) ;
35  static TopoShape MakePolyline (const Vector2List& points) ;
42  static TopoShape MakePolyline (const Vector2List& points, const FloatList& bulges) ;
48  static TopoShape MakePolygon (const Vector2List& points) ;
54  static TopoShape MakeSpline (const Vector2List& points) ;
61  static TopoShape MakeCircle (const Vector2& centerPt, Real radius) ;
70  static TopoShape MakeArc (const Vector2& centerPt, Real radius, const Vector2& startPt, const Vector2& endPt) ;
79  static TopoShape MakeArc (const Vector2& start, const Vector2& end, Real bulge, bool bulgeFlag) ;
88  static TopoShape MakeArc (const Vector2& centerPt, Real radius, Real startAngle, Real endAngle) ;
98  static TopoShape MakeEllipseArc (const Vector2& centerPt, const Vector2& majorPt, Real ratio, Real startAngle, Real endAngle) ;
108  static TopoShape MakeEllipseArc (const Vector2& centerPt, Real majorR, Real minorR, Real startAngle, Real endAngle) ;
114  static TopoShape ToBSplineCurve (const TopoShape& curve) ;
120  static TopoShape ToBSplineCurve (const TopoShapeGroup& curves) ;
126  static TopoShape MakeFace (const TopoShape& wire2d) ;
127  };//Primitive2dTools;
128 }}//API
129 
130 #endif //_APIPrimitive2dTools_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
Point or vector.
Definition: APIMath.h:16
拓扑对象
Definition: APITopoShape.h:18
Create 2d geometry on XOY plane, such as line, polyline, circle, arc, BSpline.
Definition: APIPrimitive2dTools.h:19
#define DECLARE_APIOBJECT(className)
Definition: APIObjectDef.h:10
std::vector< float > FloatList
Definition: APIString.h:15
拓扑对象组
Definition: APITopoShapeGroup.h:18
std::vector< Vector2 > Vector2List
Definition: APIMath.h:30
double Real
Definition: APIMath.h:7