class Enlighten IPrecompMeshValidation

This is the documentation for Enlighten.

class Enlighten IPrecompMeshValidation

class Enlighten::IPrecompMeshValidation

An interface containing methods for analyzing meshes.

Functions

Name

Description

Name

Description

~IPrecompMeshValidation()

Protected to avoid accidental deletion.

CheckForDetailMeshWarnings()

Check the current mesh for warnings, assuming it is to be used as a detail mesh and thus does not need valid UVs.

CheckForErrors()

Check the current mesh for errors.

CheckForWarnings()

Check the current mesh for warnings, assuming it is to be used as a target mesh and thus must have valid UVs.

Create(const IPrecompInputMesh *)

Create a new mesh validation object allocated on the heap to validate the given mesh.

Create(const IPrecompInputMesh *, Geo::IGeoProgressProxy *, PrecompMeshIdentifier)

Create a new mesh validation object allocated on the heap to validate the given mesh.

Release()

Delete this instance.

ValidateAllVertsUsed(IndexArray &)

Check that all vertices in the current mesh are actually part of a triangle.

ValidateMeshDegeneracy()

Check that the mesh is not empty or entirely topologically degenerate.

ValidateTriangleNormalHalfSpaceCriteria(IndexArray &)

Check that all triangles have vertex normals all on one side of the geometric normal of that triangle.

ValidateTriangleVertexIndices(IndexArray &)

Check the current mesh for triangle vertex indices that are out of bounds.

ValidateUVDegeneracy(IndexArray &, const float)

Check that all triangles have an absolute UV area greater than the given epsilon.

ValidateVertexChartUVs(IndexArray &)

Check that all vertex ChartUVs are within [0,1]x[0,1] the precompute can proceed in this case but the IPrecompInputGeometry RadiosityPixelDensity will not have a well defined basis.

ValidateVertexNormals(IndexArray &)

Check that all vertex normals have been normalized.

ValidateVertexValues(IndexArray &)

Check the current mesh for non-finite vertex position, normal and uv values.

Enums

Name

Description

Name

Description

ErrorCases

Error case bit flags.

WarningCases

Warning case bit flags.

Typedefs

Name

Description

Name

Description

Geo::GeoArray< Geo::s32 > IndexArray

Collection of vertex indices.



virtual Enlighten::IPrecompMeshValidation::~IPrecompMeshValidation


protected: virtual ~IPrecompMeshValidation()


Protected to avoid accidental deletion.



virtual Geo::s32 Enlighten::IPrecompMeshValidation::CheckForDetailMeshWarnings


public: Geo::s32 CheckForDetailMeshWarnings()


Check the current mesh for warnings, assuming it is to be used as a detail mesh and thus does not need valid UVs.

 

Returns

the bitwise or of any relevant WarningCases detected in this mesh.