Torque3D Documentation / _generateds / SilhouetteExtractorBasePerspective

SilhouetteExtractorBasePerspective

Engine/source/math/mSilhouetteExtractor.h

Silhouette extraction routines for perspective projections.

More...

Per-Extraction Data

Orientation *

The facing direction of each of the polygons.

Frame allocator water mark to release temporary memory after silhouette extraction.

Private Types

enum
Orientation {
  FrontFacing 
  BackFacing 
}

Public Functions

bool
begin(const MatrixF & camView)

Initialize extraction.

end()

End extraction.

bool
isSilhouetteEdge(U32 edgeIndex)

Return true if the given edge is a silhouette edge with respect to the current perspective transform.

Detailed Description

Silhouette extraction routines for perspective projections.

Per-Extraction Data

Orientation * mPolygonOrientations 

The facing direction of each of the polygons.

U32 mWaterMark 

Frame allocator water mark to release temporary memory after silhouette extraction.

Private Types

Orientation

Enumerator

FrontFacing
BackFacing

Public Functions

SilhouetteExtractorBasePerspective(const Polyhedron & polyhedron)

begin(const MatrixF & camView)

Initialize extraction.

Parameters:

objectView

View->object matrix.

end()

End extraction.

isSilhouetteEdge(U32 edgeIndex)

Return true if the given edge is a silhouette edge with respect to the current perspective transform.

Parameters:

edgeIndex

Index of edge to test.

return:

True if the given edge is a silhouette when looked at from the given view position.

note:

This method depends on inward-facing normals!