Definition at line 17 of file PureMesh3DManagerImpl.h.
#include <PureMesh3DManagerImpl.h>
|
PureMesh3D * | loadOBJ (const char *filename) |
| Loads OBJ files, handles the actual file operations, and creates the Mesh3D object.
|
|
◆ ~PureMesh3DManagerImpl()
PureMesh3DManager::PureMesh3DManagerImpl::~PureMesh3DManagerImpl |
( |
| ) |
|
|
virtual |
◆ PureMesh3DManagerImpl() [1/3]
PureMesh3DManager::PureMesh3DManagerImpl::PureMesh3DManagerImpl |
( |
| ) |
|
|
private |
◆ PureMesh3DManagerImpl() [2/3]
- Parameters
-
owner | Public class instance owning this pimpl object. |
matMgr | A MaterialManager instance to be used for creating materials used by Mesh3D instances. |
Definition at line 1402 of file PureMesh3DManager.cpp.
◆ PureMesh3DManagerImpl() [3/3]
◆ convertToBox()
Converts the given Mesh to a box with the given sizes.
Converts the given Mesh to a Box Mesh with the given sizes.
Expects level-1 Mesh (so it must have subobject) and it must have exactly 1 subobject only. This function is very useful for descendant classes that want to construct custom objects based on Mesh3D, since during the constructing of custom object, this function can be invoked to set up the underlying geometry. Example use case: Object3D, when being constructed, can be given as parameter to this function, so it will be a renderable Box object, without any array copy operation during construction.
- Parameters
-
mesh | The Mesh instance to be converted to a Box Mesh. |
a | Length of box (size on X-axis). |
b | Height of box (size on Y-axis). |
c | Depth of box (size on Z-axis). |
Definition at line 259 of file PureMesh3DManager.cpp.
◆ convertToPlane()
Converts the given Mesh to a plane with the given sizes.
Converts the given Mesh to a Plane Mesh with the given sizes.
Expects level-1 Mesh (so it must have subobject) and it must have exactly 1 subobject only. This function is very useful for descendant classes that want to construct custom objects based on Mesh3D, since during the constructing of custom object, this function can be invoked to set up the underlying geometry. Example use case: Object3D, when being constructed, can be given as parameter to this function, so it will be a renderable Plane object, without any array copy operation during construction.
- Parameters
-
mesh | The Mesh instance to be converted to a Plane Mesh. |
a | Length of plane (size on X-axis). |
b | Height of plane (size on Y-axis). |
Definition at line 75 of file PureMesh3DManager.cpp.
◆ createMaterialForMesh()
Creates a material for the given Mesh if it doesn't yet have one.
Won't create new material if the given Mesh already has a material.
- Parameters
-
mesh | The mesh for we want to create a material. |
- Returns
- The created or already existing material. PGENULL in case of error.
Definition at line 756 of file PureMesh3DManager.cpp.
◆ isInitialized()
TPureBool PureMesh3DManager::PureMesh3DManagerImpl::isInitialized |
( |
| ) |
const |
◆ isMinimalIndexStorageEnabled()
TPureBool PureMesh3DManager::PureMesh3DManagerImpl::isMinimalIndexStorageEnabled |
( |
| ) |
const |
◆ loadOBJ()
PureMesh3D * PureMesh3DManager::PureMesh3DManagerImpl::loadOBJ |
( |
const char * | filename | ) |
|
|
protected |
Loads OBJ files, handles the actual file operations, and creates the Mesh3D object.
- Parameters
-
filename | The model file to be loaded to be an Mesh3D instance. |
- Returns
- The created Mesh3D object on success, PGENULL otherwise.
Definition at line 790 of file PureMesh3DManager.cpp.
◆ operator=()
◆ SetMinimalIndexStorageEnabled()
void PureMesh3DManager::PureMesh3DManagerImpl::SetMinimalIndexStorageEnabled |
( |
TPureBool | state | ) |
|
◆ PureMesh3DManager
◆ _pOwner
◆ bInited
TPureBool PureMesh3DManager::PureMesh3DManagerImpl::bInited |
|
private |
◆ bMinimalIndexStorage
TPureBool PureMesh3DManager::PureMesh3DManagerImpl::bMinimalIndexStorage |
|
private |
◆ materialMgr
◆ nRunningCounter
TPureUInt PureMesh3DManager::PureMesh3DManagerImpl::nRunningCounter |
|
private |
The documentation for this class was generated from the following files: