![]() |
ArcGIS Procedural Runtime
3.5.12540
|
#include <EncodePreparator.h>
Public Types | |
| enum | IndexSharing { INDICES_SEPARATE_FOR_ALL_VERTEX_ATTRIBUTES = 0, INDICES_SAME_FOR_VERTICES_AND_NORMALS = (1 << 0), INDICES_SAME_FOR_VERTICES_AND_FIRST_UV_SET = (1 << 1), INDICES_SAME_FOR_VERTICES_AND_ALL_UV_SETS = (1 << 2) | INDICES_SAME_FOR_VERTICES_AND_FIRST_UV_SET, INDICES_SAME_FOR_VERTICES_AND_NORMALS_AND_FIRST_UV_SET = INDICES_SAME_FOR_VERTICES_AND_NORMALS | INDICES_SAME_FOR_VERTICES_AND_FIRST_UV_SET, INDICES_SAME_FOR_ALL_VERTEX_ATTRIBUTES = INDICES_SAME_FOR_VERTICES_AND_NORMALS | INDICES_SAME_FOR_VERTICES_AND_ALL_UV_SETS } |
Public Member Functions | |
| PreparationFlags & | atlasAddWrapBorder (bool v) |
| bool | atlasAddWrapBorder () const |
| PreparationFlags & | atlasRepeatingTextures (bool v) |
| bool | atlasRepeatingTextures () const |
| PreparationFlags & | bakeTextureTrafos (bool v) |
| bool | bakeTextureTrafos () const |
| PreparationFlags & | cleanupUVs (bool v) |
| bool | cleanupUVs () const |
| PreparationFlags & | cleanupVertexNormals (bool v) |
| bool | cleanupVertexNormals () const |
| PreparationFlags & | createTextureAtlases (bool v) |
| bool | createTextureAtlases () const |
| PreparationFlags & | cutoutTextures (bool v) |
| bool | cutoutTextures () const |
| PreparationFlags & | determineMeshProperties (bool v) |
| bool | determineMeshProperties () const |
| PreparationFlags & | forceAtlasing (bool v) |
| bool | forceAtlasing () const |
| PreparationFlags & | indexSharing (IndexSharing v) |
| IndexSharing | indexSharing () const |
| PreparationFlags & | instancing (bool v) |
| bool | instancing () const |
| PreparationFlags & | instancingMode (Instancing::Action v) |
| Instancing::Action | instancingMode () const |
| PreparationFlags & | maxAtlasDim (int v) |
| int | maxAtlasDim () const |
| PreparationFlags & | maxTexSize (uint32_t v) |
| uint32_t | maxTexSize () const |
| PreparationFlags & | mergeByMaterial (bool v) |
| bool | mergeByMaterial () const |
| PreparationFlags & | mergeToleranceNormals (float v) |
| float | mergeToleranceNormals () const |
| PreparationFlags & | mergeToleranceUVs (float v) |
| float | mergeToleranceUVs () const |
| PreparationFlags & | mergeToleranceVertices (float v) |
| float | mergeToleranceVertices () const |
| PreparationFlags & | mergeVertices (bool v) |
| bool | mergeVertices () const |
| PreparationFlags & | meshMerging (MeshMerging::Action v) |
| MeshMerging::Action | meshMerging () const |
| PreparationFlags & | offset (double x, double y, double z) |
| PreparationFlags & | offset (const double *xyz) |
| const double * | offset () const |
| PreparationFlags & | processHoles (HoleProcessor::Action v) |
| HoleProcessor::Action | processHoles () const |
| PreparationFlags & | processVertexNormals (VertexNormalProcessor::Action v) |
| VertexNormalProcessor::Action | processVertexNormals () const |
| PreparationFlags & | triangulate (bool v) |
| bool | triangulate () const |
Container class for the preparation flags. This class provides a number of chainable setters to control the preparation process.
Defaults:
Index sharing types for vertex attributes (coordinates, normals, texture coordinates).
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::atlasAddWrapBorder | ( | bool | v | ) |
If true, texture atlases are forced to have power of two dimensions.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::atlasRepeatingTextures | ( | bool | v | ) |
If true, repeating textures are put into texture atlases as well.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::bakeTextureTrafos | ( | bool | v | ) |
If true, the texture transformations stored in the Material (such as colormap.su,sv,tu,tv,rw) are applied on the geometry's uvs. This is useful if the export format does not support texture transformations in the material model. However, it can break instancing since the geometry might be manipulated.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::cleanupUVs | ( | bool | v | ) |
If true, texture coordinates will be merged if they are within the tolerance set by mergeToleranceUVs().
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::cleanupVertexNormals | ( | bool | v | ) |
If true, vertex normals will be merged if they are within the tolerance set by mergeToleranceNormals().
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::createTextureAtlases | ( | bool | v | ) |
If true, texture atlases are created and the materials and geometries updated accordingly per fetch call.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::cutoutTextures | ( | bool | v | ) |
If true, textures are cut to the used area and the materials and geometries updated accordingly per fetch call. This cannot be turned off if texture atlases are activated.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::determineMeshProperties | ( | bool | v | ) |
If true, performs a mesh analysis. The results can be accessed in FinalizedInstance::allMeshFacesConvex() and FinalizedInstance::allMeshFacesPlanar().
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::forceAtlasing | ( | bool | v | ) |
If true, texture atlases are forced even for single textures.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::indexSharing | ( | IndexSharing | v | ) |
Specify the index setup of the finalized meshes.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::instancing | ( | bool | v | ) |
[DEPRECATED, use instancingMode()] If true, the preparator shares/reuses cached/identical geometry objects over multiple instances. true corresponds to Instancing::ALL, false corresponds to Instancing::NONE.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::instancingMode | ( | Instancing::Action | v | ) |
Controls whether identical cached geometry is shared across finalized instances or emitted separately.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::maxAtlasDim | ( | int | v | ) |
Set max dimension for texture atlases. v is taken to the power of 2, e.g. 11 => 2048x2048.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::maxTexSize | ( | uint32_t | v | ) |
Specifies the size to scale larger input images down to. Ignored if zero.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::mergeByMaterial | ( | bool | v | ) |
[DEPRECATED, use meshMerging()] If true, meshes with the same material are combined per fetch call.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::mergeToleranceNormals | ( | float | v | ) |
Merge tolerance for vertex normals. See cleanupVertexNormals().
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::mergeToleranceUVs | ( | float | v | ) |
Merge tolerance for texture coordinates. See cleanupUVs().
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::mergeToleranceVertices | ( | float | v | ) |
Merge tolerance for vertex coordinates. See mergeVertices().
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::mergeVertices | ( | bool | v | ) |
If true, vertices will be merged together if they are closer than the distance specified with mergeToleranceVertices(float v).
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::meshMerging | ( | MeshMerging::Action | v | ) |
Control how new meshes should be merged with previous ones when added to the preparator.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::offset | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
All meshes are offset by (x,y,z).
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::offset | ( | const double * | xyz | ) |
All meshes are offset by xyz. xyz is expected to contain three double values.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::processHoles | ( | HoleProcessor::Action | v | ) |
The specified action is applied to faces with holes.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::processVertexNormals | ( | VertexNormalProcessor::Action | v | ) |
The specified operation is applied to all vertex normals.
| PreparationFlags& prtx::EncodePreparator::PreparationFlags::triangulate | ( | bool | v | ) |
If true, all meshes are triangulated.
1.8.14