Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::ArticulatedModel::CleanGeometrySettings Class Reference

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...
 

Detailed Description

Parameters for cleanGeometry().

Note that HAIR format models are never cleaned on load, as an optimization, because they are always generated cleanly.

Constructor & Destructor Documentation

◆ CleanGeometrySettings() [1/2]

G3D::ArticulatedModel::CleanGeometrySettings::CleanGeometrySettings ( )
inline

◆ CleanGeometrySettings() [2/2]

G3D::ArticulatedModel::CleanGeometrySettings::CleanGeometrySettings ( const Any a)

Member Function Documentation

◆ operator==()

bool G3D::ArticulatedModel::CleanGeometrySettings::operator== ( const CleanGeometrySettings other) const
inline

◆ toAny()

Any G3D::ArticulatedModel::CleanGeometrySettings::toAny ( ) const

Member Data Documentation

◆ allowVertexMerging

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==().

◆ forceComputeNormals

bool G3D::ArticulatedModel::CleanGeometrySettings::forceComputeNormals

Force recomputation of normals, ignoring what is already present.

Referenced by operator==().

◆ forceComputeTangents

bool G3D::ArticulatedModel::CleanGeometrySettings::forceComputeTangents

Force recomputation of tangents, ignoring what is already present.

Referenced by operator==().

◆ forceVertexMerging

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==().

◆ maxEdgeLength

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==().

◆ maxNormalWeldAngle

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==().

◆ maxSmoothAngle

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==().


documentation generated on Wed Nov 24 2021 08:01:53 using doxygen 1.8.15