Polygon Crucher SDK - Documentation
Documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
3DObject.h
Go to the documentation of this file.
1//! @file 3DObject.h
2//! @brief The file contains C3DObject class definition which handles N-Gons polygonal object
3//!
4//////////////////////////////////////////////////////////////////////
5
6#if !defined(AFX_3DOBJECT_H__CA6BC29F_FAC2_11D1_A0DE_000000000000__INCLUDED_)
7#define AFX_3DOBJECT_H__CA6BC29F_FAC2_11D1_A0DE_000000000000__INCLUDED_
8
9#ifdef _MSC_VER
10#pragma once
11#endif // _MSC_VER
12
13#include "3DGeomObject.h"
14
15BEGIN_MOOTOOLS_NAMESPACE
16
17//! @class C3DObject
18//! @brief C3DObject handles polygonal mesh.
19//! @details A polygonal mesh is made of polygonal faces each one with 3 or more points. Faces and points can be retrieved using C3DBaseObject::GetFaceList, C3DBaseObject::GetPointList.
20//! The faces can have 3 or more points, a particular materials and you can also assign your own custom data.\n
21//! UV, vertex colors and many other kind of data can be associated using the CDependentChannel class owned by the object.\n
22//! A simple way to initialize a C3DObject is to used C3DObject::Init method
23class DLL_3DFUNCTION C3DObject : public C3DGeomObject
24{
25 friend CGeomInfo;
26
27 DECLARE_SERIAL_XOBJECT(C3DObject);
28
29protected:
30
31public:
32 C3DObject();
33 C3DObject(C3DPointList *points, C3DFaceList *faces, CDependentChannels *channels = NULL);
34 virtual ~C3DObject();
35
36 bool Init(int points, int faces, int defaultFaceSize, BOOL createUVChannel = FALSE, int uvpts = 0, ChannelID chnid = 0);
37};
38
39END_MOOTOOLS_NAMESPACE
40
41#endif // !defined(AFX_3DOBJECT_H__CA6BC29F_FAC2_11D1_A0DE_000000000000__INCLUDED_)
C3DFaceList class which implement a list of C3DFace. Each face contains indexes to 3D points stored i...
Definition 3DFaceList.h:249
This is the base class for any object containing geometry (curve, polygonal object,...
Definition 3DGeomObject.h:49
C3DObject handles polygonal mesh.
Definition 3DObject.h:24
Definition 3DPointList.h:267
The class defines an x, y, z 3D point which can use int, float or double.
Definition 3DPoint.h:27
This class contains an array of CChannel information which are associated to the object.
Definition DependentChannels.h:56
CGeomInfo is an helper class oftenly required by different methods.
Definition GeomInfo.h:71