C# Class Axiom.Graphics.EdgeData

This class contains the information required to describe the edge connectivity of a given set of vertices and indexes.
Show file Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Property Type Description
edgeGroups EdgeGroupList
triangles TriangleList

Public Methods

Method Description
DebugLog ( Log log ) : void
UpdateFaceNormals ( int vertexSet, HardwareVertexBuffer positionBuffer ) : void

Updates the face normals for this edge list based on (changed) position information, useful for animated objects.

UpdateTriangleLightFacing ( Vector4 lightPos ) : void

Calculate the light facing state of the triangles in this edge list.

This is normally the first stage of calculating a silhouette, ie establishing which tris are facing the light and which are facing away. This state is stored in the 'lightFacing' flag in each Triangle.

Method Details

DebugLog() public method

public DebugLog ( Log log ) : void
log Log
return void

UpdateFaceNormals() public method

Updates the face normals for this edge list based on (changed) position information, useful for animated objects.
public UpdateFaceNormals ( int vertexSet, HardwareVertexBuffer positionBuffer ) : void
vertexSet int The vertex set we are updating.
positionBuffer HardwareVertexBuffer The updated position buffer, must contain ONLY xyz.
return void

UpdateTriangleLightFacing() public method

Calculate the light facing state of the triangles in this edge list.
This is normally the first stage of calculating a silhouette, ie establishing which tris are facing the light and which are facing away. This state is stored in the 'lightFacing' flag in each Triangle.
public UpdateTriangleLightFacing ( Vector4 lightPos ) : void
lightPos Vector4 /// 4D position of the light in object space, note that /// for directional lights (which have no position), the w component /// is 0 and the x/y/z position are the direction. ///
return void

Property Details

edgeGroups protected property

List of edge groups.
protected EdgeGroupList edgeGroups
return EdgeGroupList

triangles protected property

List of triangles.
protected TriangleList triangles
return TriangleList