Torque3D Documentation / _generateds / SilhouetteExtractorBaseOrtho

SilhouetteExtractorBaseOrtho

Engine/source/math/mSilhouetteExtractor.h

Silhouette extraction routines for orthographic projections.

More...

Per-Extraction Data

F32 *

Precomputed dot products between view direction and plane normals in the polyhedron.

Frame allocator water mark.

Public Functions

begin(const Point3F & viewDirOS)

Initialize the extractor.

end()

Finish extraction.

bool
isSilhouetteEdge(U32 edgeIndex)

Return true if the given edge is a silhouette edge with respect to the view direction.

Detailed Description

Silhouette extraction routines for orthographic projections.

Per-Extraction Data

F32 * mFaceDotProducts 

Precomputed dot products between view direction and plane normals in the polyhedron.

U32 mWaterMark 

Frame allocator water mark.

Public Functions

SilhouetteExtractorBaseOrtho(const Polyhedron & polyhedron)

begin(const Point3F & viewDirOS)

Initialize the extractor.

end()

Finish extraction.

isSilhouetteEdge(U32 edgeIndex)

Return true if the given edge is a silhouette edge with respect to the view direction.

Parameters:

edgeIndex

Index of edge to test.

return:

True if the given edge is a silhouette in the projection along the view direction.

note:

This method depends on inward-facing normals!