C# Class Axiom.Graphics.EdgeData.Triangle

Basic triangle structure.
Show file Open project: WolfgangSt/axiom Class Usage Examples

Public Properties

Property Type Description
indexSet int
lightFacing bool
normal Vector4
sharedVertIndex int[]
vertIndex int[]
vertexSet int

Public Methods

Method Description
ToString ( ) : string
Triangle ( ) : System

Default contructor.

Method Details

ToString() public method

public ToString ( ) : string
return string

Triangle() public method

Default contructor.
public Triangle ( ) : System
return System

Property Details

indexSet public property

The set of indexes this triangle came from (NB it is possible that the triangles on one side of an edge are using a different vertex buffer from those on the other side.)
public int indexSet
return int

lightFacing public property

Working vector used when calculating the silhouette.
public bool lightFacing
return bool

normal public property

Unit vector othogonal to this face, plus distance from origin.
public Vector4 normal
return Vector4

sharedVertIndex public property

Vertex indexes, relative to a shared vertex buffer with duplicates eliminated (this buffer is not exposed).
public int[] sharedVertIndex
return int[]

vertIndex public property

Vertex indexes, relative to the original buffer.
public int[] vertIndex
return int[]

vertexSet public property

The vertex set these vertices came from.
public int vertexSet
return int