UnityUtilities
UnityUtilities.MeshTriangle Class Reference

A triangle, consisting of three MeshVertex. Used in a MeshCreator. Cannot be part of more than one MeshCreator. More...

Public Member Functions

 MeshTriangle (MeshVertex a, MeshVertex b, MeshVertex c)
 Creates a new triangle. More...
 
void Update (MeshVertex a, MeshVertex b, MeshVertex c)
 Convenience method to update all three vertices at once. More...
 

Properties

MeshVertex [] MeshVertices [get]
 The three vertices that make up this triangle in clockwise order. More...
 

Detailed Description

A triangle, consisting of three MeshVertex. Used in a MeshCreator. Cannot be part of more than one MeshCreator.

Constructor & Destructor Documentation

§ MeshTriangle()

UnityUtilities.MeshTriangle.MeshTriangle ( MeshVertex  a,
MeshVertex  b,
MeshVertex  c 
)

Creates a new triangle.

Parameters
aThe first vertex in clockwise order.
bThe second vertex in clockwise order.
cThe third vertex in clockwise order.

Member Function Documentation

§ Update()

void UnityUtilities.MeshTriangle.Update ( MeshVertex  a,
MeshVertex  b,
MeshVertex  c 
)

Convenience method to update all three vertices at once.

Parameters
aThe first vertex in clockwise order.
bThe second vertex in clockwise order.
cThe third vertex in clockwise order.

Property Documentation

§ MeshVertices

MeshVertex [] UnityUtilities.MeshTriangle.MeshVertices
get

The three vertices that make up this triangle in clockwise order.


The documentation for this class was generated from the following file: