Support Forum G3D Web Page |
Parameters for cleanGeometry(). More...
Public Member Functions | |
CleanGeometrySettings () | |
CleanGeometrySettings (const Any &a) | |
bool | operator== (const CleanGeometrySettings &other) const |
Any | toAny () const |
Public Attributes | |
bool | allowVertexMerging |
Set to false to prevent the (slow) operation of merging colocated vertices that have identical properties. More... | |
bool | forceComputeNormals |
Force recomputation of normals, ignoring what is already present. More... | |
bool | forceComputeTangents |
Force recomputation of tangents, ignoring what is already present. More... | |
bool | forceVertexMerging |
Set to true to check for redundant vertices even if no normals or tangents need to be computed. More... | |
float | maxEdgeLength |
Maximum edge length in meters allowed for a triangle. More... | |
float | maxNormalWeldAngle |
Maximum angle in radians that a normal can be bent through to merge two vertices. More... | |
float | maxSmoothAngle |
Maximum angle in radians between the normals of adjacent faces that will still create the appearance of a smooth surface between them. More... | |
Parameters for cleanGeometry().
Note that HAIR format models are never cleaned on load, as an optimization, because they are always generated cleanly.
|
inline |
G3D::ArticulatedModel::CleanGeometrySettings::CleanGeometrySettings | ( | const Any & | a | ) |
|
inline |
Any G3D::ArticulatedModel::CleanGeometrySettings::toAny | ( | ) | const |
bool G3D::ArticulatedModel::CleanGeometrySettings::allowVertexMerging |
Set to false to prevent the (slow) operation of merging colocated vertices that have identical properties.
Merging vertices speeds up rendering but slows down loading. Setting to false overrides forceVertexMerging.
Referenced by operator==().
bool G3D::ArticulatedModel::CleanGeometrySettings::forceComputeNormals |
Force recomputation of normals, ignoring what is already present.
Referenced by operator==().
bool G3D::ArticulatedModel::CleanGeometrySettings::forceComputeTangents |
Force recomputation of tangents, ignoring what is already present.
Referenced by operator==().
bool G3D::ArticulatedModel::CleanGeometrySettings::forceVertexMerging |
Set to true to check for redundant vertices even if no normals or tangents need to be computed.
This may increase rendering performance and decrease cleanGeometry() performance. Default: true.
Referenced by operator==().
float G3D::ArticulatedModel::CleanGeometrySettings::maxEdgeLength |
Maximum edge length in meters allowed for a triangle.
The loader subdivides the triangles until this requirement is met.
Referenced by operator==().
float G3D::ArticulatedModel::CleanGeometrySettings::maxNormalWeldAngle |
Maximum angle in radians that a normal can be bent through to merge two vertices.
Default: 8 degrees().
Referenced by operator==().
float G3D::ArticulatedModel::CleanGeometrySettings::maxSmoothAngle |
Maximum angle in radians between the normals of adjacent faces that will still create the appearance of a smooth surface between them.
Alternatively, the minimum angle between those normals required to create a sharp crease.
Set to 0 to force faceting of a model. Set to 2 * pif() to make completely smooth.
Default: 65 degrees().
Referenced by operator==().