1 #ifndef __RTFX_GEOMETRY__
2 #define __RTFX_GEOMETRY__
54 void ToNative( AXISFRAME _frame );
57 void FromNative( AXISFRAME _frame );
60 void ChangeFrame( AXISFRAME _from, AXISFRAME _to );
66 void SetPosition(
double _x,
double _y,
double _z );
72 double * GetPositionAsDoubles();
78 void SetNormal(
double _x,
double _y,
double _z );
84 double * GetNormalAsDoubles();
87 void SetUV(
double _u,
double _v );
93 void SetIndex(
unsigned int _idx );
96 unsigned int GetIndex();
100 void Init(
bool _idGen );
102 friend class boost::serialization::access;
104 template<
class Archive>
105 void serialize( Archive &_ar,
const unsigned int _version )
107 _ar & boost::serialization::base_object<RTFXObject>( *this );
139 void ToNative( AXISFRAME _frame );
142 void FromNative( AXISFRAME _frame );
145 void ChangeFrame( AXISFRAME _from, AXISFRAME _to );
151 void SetNormal(
double _x,
double _y,
double _z );
157 double * GetNormalAsDoubles();
160 void SetPoints( std::vector<unsigned int> _pts );
163 void AddPoint(
unsigned int _pt );
166 std::vector<unsigned int> * GetPoints();
169 unsigned int GetPointAt(
unsigned int _idx );
172 void SetIndex(
unsigned int _idx );
175 unsigned int GetIndex();
179 void Init(
bool _genID );
181 friend class boost::serialization::access;
183 template<
class Archive>
184 void serialize( Archive &_ar,
const unsigned int _version )
186 _ar & boost::serialization::base_object<RTFXObject>( *this );
231 void ToNative( AXISFRAME _frame );
234 void FromNative( AXISFRAME _frame );
237 void ChangeFrame( AXISFRAME _from, AXISFRAME _to );
243 RTFXPoint * GetPoint(
unsigned int _idx );
246 void DeletePoint(
unsigned int _idx );
252 RTFXFace * GetFace(
unsigned int _idx );
255 void DeleteFace(
unsigned int _idx );
258 void SetPosition(
Point3D _p );
261 void SetPosition(
double _x,
double _y,
double _z );
267 double * GetPositionAsDoubles();
270 void SetRotation(
Point3D _p );
273 void SetRotation(
double _x,
double _y,
double _z );
279 double * GetRotationAsDoubles();
285 void SetScale(
double _x,
double _y,
double _z );
291 double * GetScaleAsDoubles();
297 void SetTransform(
double * _m );
303 double * GetTransformAsDoubles();
306 void DeleteAllPoints();
309 void DeleteAllFaces();
312 unsigned int GetPointCount();
315 unsigned int GetFaceCount();
319 std::vector<RTFXProperty *> GetChangedProperties();
323 void Init(
bool _genID );
337 friend class boost::serialization::access;
339 template<
class Archive>
340 void serialize( Archive &_ar,
const unsigned int _version )
342 _ar & boost::serialization::base_object<RTFXObject>( *this );
343 _ar & numberOfPoints;
352 BOOST_CLASS_EXPORT_KEY( RTFX::RTFXFace )
353 BOOST_CLASS_EXPORT_KEY( RTFX::RTFXGeometry )