Torque3D Documentation / _generateds / OptimizedPolyList

OptimizedPolyList

Engine/source/collision/optimizedPolyList.h

A concrete, renderable PolyList.

More...

Classes:

Public Types

enum
PolyType {
  TriangleFan 
  TriangleStrip 
  TriangleList 
}

Public Functions

Adds a plane to the poly list, and returns an ID number for that point.

Adds a point to the poly list, and returns an ID number for that point.

begin(BaseMatInstance * material, U32 surfaceKey)

Start a surface.

begin(BaseMatInstance * material, U32 surfaceKey, PolyType type)
end()

Mark the end of a surface.

insertVertex(const Point3F & point, const Point3F & normal, const Point2F & uv0, const Point2F & uv1)
bool

Are we empty of data?

Indicate the plane of the surface.

plane(const U32 index)

Indicate the plane of the surface.

plane(U32 v1, U32 v2, U32 v3)

Indicate the plane of the surface.

vertex(const Point3F & p, const Point3F & normal, const Point2F & uv0, const Point2F & uv1)
vertex(U32 vi)

Reference a vertex which is in this surface.

Protected Functions

A helper function to convert a plane index to a PlaneF structure.

Detailed Description

A concrete, renderable PolyList.

This class is used to store geometry from a PolyList query.

Public Types

PolyType

Enumerator

TriangleFan
TriangleStrip
TriangleList

Public Attributes

Vector< U32 > mIndexList 
Vector< BaseMatInstance * > mMaterialList 
Vector< Point3F > mNormals 
Vector< PlaneF > mPlaneList 
Vector< Point3F > mPoints 
Vector< Poly > mPolyList 
Vector< Point2F > mUV0s 
Vector< Point2F > mUV1s 
Vector< VertIndex > mVertexList 

Public Functions

OptimizedPolyList()

~OptimizedPolyList()

addPlane(const PlaneF & plane)

Reimplemented from: AbstractPolyList

addPoint(const Point3F & p)

Reimplemented from: AbstractPolyList

begin(BaseMatInstance * material, U32 surfaceKey)

Reimplemented from: AbstractPolyList

begin(BaseMatInstance * material, U32 surfaceKey, PolyType type)

clear()

end()

Reimplemented from: AbstractPolyList

insertMaterial(BaseMatInstance * baseMat)

insertNormal(const Point3F & normal)

insertPlane(const PlaneF & plane)

insertPoint(const Point3F & point)

insertUV0(const Point2F & uv)

insertUV1(const Point2F & uv)

insertVertex(const Point3F & point, const Point3F & normal, const Point2F & uv0, const Point2F & uv1)

isEmpty()

Reimplemented from: AbstractPolyList

plane(const PlaneF & p)

Reimplemented from: AbstractPolyList

plane(const U32 index)

Reimplemented from: AbstractPolyList

plane(U32 v1, U32 v2, U32 v3)

Reimplemented from: AbstractPolyList

toPolyhedron()

vertex(const Point3F & p)

vertex(const Point3F & p, const Point3F & normal, const Point2F & uv0, const Point2F & uv1)

vertex(U32 vi)

Reimplemented from: AbstractPolyList

Protected Functions

getIndexedPlane(const U32 index)

Reimplemented from: AbstractPolyList