0022550: Fixing data races
[occt.git] / src / BSplCLib / BSplCLib_3.cxx
CommitLineData
7fd59977 1// File: BSplCLib_3.cxx
2// Created: Fri May 19 18:33:07 1995
3// Author: Xavier BENVENISTE
4// <xab@nonox>
5
6#include <BSplCLib.ixx>
7#include <Standard_NotImplemented.hxx>
8
9// BSpline Curve in 3d space
10// ***************************
11
7fd59977 12#define Dimension_gen 3
13
14#define Array1OfPoints TColgp_Array1OfPnt
15#define Point gp_Pnt
16#define Vector gp_Vec
17
18#define PointToCoords(carr,pnt,op) \
19 (carr)[0] = (pnt).X() op, \
20 (carr)[1] = (pnt).Y() op, \
21 (carr)[2] = (pnt).Z() op
22
23#define CoordsToPoint(pnt,carr,op) \
24 (pnt).SetX ((carr)[0] op), \
25 (pnt).SetY ((carr)[1] op), \
26 (pnt).SetZ ((carr)[2] op)
27
28#define NullifyPoint(pnt) \
29 (pnt).SetCoord (0.,0.,0.)
30
31#define NullifyCoords(carr) \
32 (carr)[0] = (carr)[1] = (carr)[2] = 0.
33
34#define ModifyCoords(carr,op) \
35 (carr)[0] op, \
36 (carr)[1] op, \
37 (carr)[2] op
38
39#define CopyCoords(carr,carr2) \
40 (carr)[0] = (carr2)[0], \
41 (carr)[1] = (carr2)[1], \
42 (carr)[2] = (carr2)[2]
43
44#define BSplCLib_DataContainer BSplCLib_DataContainer_3d
45
46#include <BSplCLib_CurveComputation.gxx>