Obi  7.0.5
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiMesh.Cluster Class Reference
Inheritance diagram for Obi.ObiMesh.Cluster:

Public Member Functions

 Cluster (Vector3[] vertexPositions, int vertexIndex)
 
 Cluster (Cluster other, int index)
 
void AddVertex (int index)
 
void UpdateCentroid (Vector3[] vertexPositions)
 
void UpdateOrientation ()
 
void UpdateCollapseCost (float decimation)
 
void UpdateWeldCost (RegularGrid< Cluster > grid)
 
void GetNeighbourVertices (HashSet< Cluster > neighbors)
 
void Collapse (Vector3[] vertexPositions)
 
void DropDegenerateIncidentTriangles ()
 
bool Equals (Cluster other)
 

Public Attributes

List< TriangleincidentTriangles = new List<Triangle>()
 
List< int > vertexIndices = new List<int>()
 
int index = Quaternion.identity
 
bool isBorder
 
Cluster pair
 
float cost
 

Properties

Vector3 centroid [get, set]
 
Quaternion orientation = Vector3.zero [get, set]
 

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