This is the documentation for Enlighten.

class Enlighten PrecompMeshProperties

class Enlighten::PrecompMeshProperties

Properties of input meshes.

These properties control the behaviour of meshes in geometry objects.

The three flags (direct, indirect, target) control how the mesh is to be used by the precompute. The fourth flag is unrelated to how the mesh is used and controls whether to rescale the UV charts to be proportional to the world space surface they represent. This is on by default.

For the first three flags, only two combinations are allowed.

The default of (True, True, True) means "included in the radiosity computation" and also provides a surface which other meshes can be projected onto. The other option (False, True, False) means "share lighting" and requires there to be at least one other mesh within the geometry object included in the radiosity computation.

Please see the implementation guide for more information.

Variables

Name Description
bool m_DetectSmoothBevels

If set to true, smooth bevel faces will be detected on this mesh.

Geo::GeoGuid m_Guid

Globally unique id of this mesh.

bool m_IsDirectLightingMesh

Must be set in combination with m_IsIndirectLightingMesh and m_IsTargetMesh as described above.

bool m_IsIndirectLightingMesh

Must be set in combination with m_IsDirectLightingMesh and m_IsTargetMesh as described above.

bool m_IsTargetMesh

Must be set in combination with m_IsDirectLightingMesh and m_IsIndirectLightingMesh as described above.

bool m_ScaleCharts

Should we scale the charts of this mesh to be relative to the 3D surface area.

float m_SimpExpansionFactor

Expansion factor for group bounding boxes overlap test.

float m_SimpMaxDistance

The maximum world space separation distance within which to consider simplifying.

float m_SimpMaxGeneralNormalDeviationCos

Maximum normals deviation (cosinus) for grouping (i.e.

float m_SimpMaxInitialNormalDeviationCos

Maximum normals deviation (cosinus) for initial candidates for grouping (i.e.

eAutoSimpMode m_SimpMode

The simplification mode to use (defaults to none)

float m_SimpSignificantAreaRatio

If chartArea/groupArea is less than this value than this chart is considered insignificant.

Functions

Name Description
PrecompMeshProperties()

Constructor defaults to 'included in radiosity computation'.


Enlighten::PrecompMeshProperties::PrecompMeshProperties


public: PrecompMeshProperties()


Constructor defaults to 'included in radiosity computation'.