7fd59977 |
1 | #include <BSplCLib.hxx> |
2 | |
3 | #include <Standard_NotImplemented.hxx> |
4 | // BSpline Curve in 2d space |
5 | // ************************** |
6 | |
7fd59977 |
7 | #define Dimension_gen 2 |
8 | |
9 | #define Array1OfPoints TColgp_Array1OfPnt2d |
10 | #define Point gp_Pnt2d |
11 | #define Vector gp_Vec2d |
12 | |
13 | #define PointToCoords(carr,pnt,op) \ |
14 | (carr)[0] = (pnt).X() op, \ |
15 | (carr)[1] = (pnt).Y() op |
16 | |
17 | #define CoordsToPoint(pnt,carr,op) \ |
18 | (pnt).SetX ((carr)[0] op), \ |
19 | (pnt).SetY ((carr)[1] op) |
20 | |
21 | #define NullifyPoint(pnt) \ |
22 | (pnt).SetCoord (0.,0.) |
23 | |
24 | #define NullifyCoords(carr) \ |
25 | (carr)[0] = (carr)[1] = 0. |
26 | |
27 | #define ModifyCoords(carr,op) \ |
28 | (carr)[0] op, \ |
29 | (carr)[1] op |
30 | |
31 | #define CopyCoords(carr,carr2) \ |
32 | (carr)[0] = (carr2)[0], \ |
33 | (carr)[1] = (carr2)[1] |
34 | |
35 | #define BSplCLib_DataContainer BSplCLib_DataContainer_2d |
36 | |
37 | #include <BSplCLib_CurveComputation.gxx> |