![]() |
Polygon Crucher SDK - Documentation
Documentation
|
C3DScene class definition. More...
C3DScene class definition.
#include "3DSceneNode.h"#include "3DBaseObject.h"#include "3DFaceList.h"#include "3DMaterial.h"#include "3DAnimatable.h"#include "Tree.h"Go to the source code of this file.
Classes | |
| class | C3DObjectCreator |
| This class can be provided in C3DScene::Copy operations and allows to modify the created kind of class during the copy operation. More... | |
| class | C3DFilter |
| C3DFilter allows to filter the nodes / faces / points being processed. More... | |
| class | C3DFlagFilter |
| class | C3DConcatenateFilter |
| class | C3DNodePos |
| struct | SceneSerializeData |
| class | C3DInstanceMap |
| class | C3DScene |
| The class allows to get access to the scene graph, node hierarchy, material. More... | |
| struct | C3DScene::SortSceneData |
| struct | C3DScene::GeoLocation |
Typedefs | |
| typedef enum SCENE_DATA | SCENE_DATA |
| typedef enum NodePosFlags | NodePosFlags |
| typedef enum NodeFilterFlags | NodeFilterFlags |
| typedef struct SceneSerializeData | SceneSerializeData |
| typedef enum SceneSelectionFlags | SceneSelectionFlags |
| typedef enum ConcatenateFlags | ConcatenateFlags |
| typedef enum CreateBackFaceFlags | CreateBackFaceFlags |
| typedef enum ReplaceMatIDFlags | ReplaceMatIDFlags |
Used by C3DScene::Concatenate and C3DScene::ConcatenateByMaterials to control what is process and where the created nodes are inserted in the scene
| Enumerator | |
|---|---|
| CONCATENATE_DEFAULT | The scene is not modified, and a node is returned which can be added as you need in the scene graph. |
| CONCATENATE_INCLUDE_PARENT | parentNode is included in concatenation (could be useful if parent is a geom object) |
| CONCATENATE_REMOVE_TO_ROOT | Parent and childs are deleted (or not depending on the optionnal C3DFilter::ProcessNode returned value) and concatenated node is added to the scene root. |
| CONCATENATE_REMOVE_AND_ADD_TO_PARENT | Parent childs are deleted (or not depending on the optionnal C3DFilter::ProcessNode returned value) and replace by concatenated node which become child of parent. |
| CONCATENATE_REPLACE_PARENT | Parent and its childs is replaced by concatenated node (whatever C3DFilter::ProcessNode returned value) |
| CONCATENATE_SORT_BY_MATERIAL | The result node has its faces sorted by material. |
Flags for CreateBackfaceNodes method
These flags are used within C3DFilter to limit processing to the nodes concerned.
Scene Node traversal flags These flags can be used with C3DScene::GetFirstNode/C3DScene::GetNextNode to control the way the scene tree is
Flags to control how C3DScene::ReplaceNodeMaterialID handles material replacement
These information might be retrieve through the C3DScene::GetCustomData() class.
If these information is missing, the default value should be taken into account.
| Enumerator | |
|---|---|
| SCENE_DATA_FILENAME | CXString: the scene file path. |
| SCENE_DATA_FILECLASS | Unsigned int: the scene file class (Ie. FBX_3D_FILE, WAVEFRONT_3D_FILE...) |
| SCENE_DATA_TEMPORARY_TEXTURES | Bool (false): texture files are temporaries and can be deleted when scene deleted (ie, embedded textures in FBX or sketchup). Texture are not temporary if this information is missing. |
| SCENE_DATA_PATCH_LEVEL | unsigned int (C3DPreferences::Get3DPreferences()::GetPatchLevel()) |
| SCENE_DATA_SMOOTH_ANGLE | float ((C3DPreferences::Get3DPreferences()::GetSmoothAngle()). Smooth angle in radian |
| SCENE_DATA_SMOOTH_MODE | unsigned int ((C3DPreferences::Get3DPreferences()::GetSmoothMode()) |
| SCENE_DATA_TEXTURE_PATHS | string array: additional texture paths. Can be retrieve using C3DScene::GetTexturePaths |
| SCENE_DATA_GEOLOCATION | Binary (C3DScene::GeoLocation): longitude and latitude position of the scene. |
| SCENE_DATA_TARGET_MR_BBOX | Binary - 6 floats - Target bounding box for multiresolution file. |
these flags control the selection for C3DScene::Select method If these information is missing, the default value should be taken into account.