UnityMol  0.9.6-875
UnityMol viewer / In developement
GeometryBuffer Class Reference
+ Collaboration diagram for GeometryBuffer:

Classes

class  GroupData
 
class  ObjectData
 

Public Member Functions

 GeometryBuffer ()
 
void PushObject (string name)
 
void PushGroup (string name)
 
void PushMaterialName (string name)
 
void PushVertex (Vector3 v)
 
void PushUV (Vector2 v)
 
void PushNormal (Vector3 v)
 
void PushFace (FaceIndices f)
 
void Trace ()
 
void PopulateMeshes (GameObject[] gs, Dictionary< string, Material > mats)
 

Public Attributes

List< Vector3 > vertices
 
List< Vector2 > uvs
 
List< Vector3 > normals
 
bool hasUVs = true
 

Properties

int numObjects [get]
 
bool isEmpty [get]
 
bool hasNormals [get]
 

Private Attributes

int vertextot = 0
 
List< ObjectDataobjects
 
ObjectData current
 
GroupData curgr
 

Detailed Description

Definition at line 71 of file GeometryBuffer.cs.

Constructor & Destructor Documentation

GeometryBuffer.GeometryBuffer ( )

Definition at line 104 of file GeometryBuffer.cs.

References GeometryBuffer.GroupData.materialName, GeometryBuffer.GroupData.name, and GeometryBuffer.ObjectData.ObjectData().

+ Here is the call graph for this function:

Member Function Documentation

void GeometryBuffer.PopulateMeshes ( GameObject[]  gs,
Dictionary< string, Material >  mats 
)
void GeometryBuffer.PushFace ( FaceIndices  f)

Definition at line 168 of file GeometryBuffer.cs.

References GeometryBuffer.ObjectData.allFaces, and GeometryBuffer.GroupData.faces.

Referenced by OBJ.SetGeometryData().

+ Here is the caller graph for this function:

void GeometryBuffer.PushGroup ( string  name)
void GeometryBuffer.PushMaterialName ( string  name)

Definition at line 148 of file GeometryBuffer.cs.

References GeometryBuffer.GroupData.isEmpty, GeometryBuffer.GroupData.materialName, GeometryBuffer.ObjectData.name, GeometryBuffer.GroupData.name, and PushGroup().

Referenced by OBJ.SetGeometryData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GeometryBuffer.PushNormal ( Vector3  v)

Definition at line 164 of file GeometryBuffer.cs.

Referenced by OBJ.SetGeometryData().

+ Here is the caller graph for this function:

void GeometryBuffer.PushObject ( string  name)

Definition at line 122 of file GeometryBuffer.cs.

References GeometryBuffer.ObjectData.groups, isEmpty, GeometryBuffer.GroupData.materialName, GeometryBuffer.ObjectData.name, GeometryBuffer.GroupData.name, and GeometryBuffer.ObjectData.ObjectData().

Referenced by OBJ.SetGeometryData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GeometryBuffer.PushUV ( Vector2  v)

Definition at line 160 of file GeometryBuffer.cs.

Referenced by OBJ.SetGeometryData().

+ Here is the caller graph for this function:

void GeometryBuffer.PushVertex ( Vector3  v)

Definition at line 155 of file GeometryBuffer.cs.

Referenced by OBJ.SetGeometryData().

+ Here is the caller graph for this function:

Member Data Documentation

GroupData GeometryBuffer.curgr
private

Definition at line 93 of file GeometryBuffer.cs.

ObjectData GeometryBuffer.current
private

Definition at line 79 of file GeometryBuffer.cs.

bool GeometryBuffer.hasUVs = true

Definition at line 191 of file GeometryBuffer.cs.

List<Vector3> GeometryBuffer.normals

Definition at line 77 of file GeometryBuffer.cs.

List<ObjectData> GeometryBuffer.objects
private

Definition at line 74 of file GeometryBuffer.cs.

List<Vector2> GeometryBuffer.uvs

Definition at line 76 of file GeometryBuffer.cs.

int GeometryBuffer.vertextot = 0
private

Definition at line 73 of file GeometryBuffer.cs.

Referenced by PopulateMeshes().

List<Vector3> GeometryBuffer.vertices

Definition at line 75 of file GeometryBuffer.cs.

Property Documentation

bool GeometryBuffer.hasNormals
get

Definition at line 192 of file GeometryBuffer.cs.

Referenced by PopulateMeshes().

bool GeometryBuffer.isEmpty
get

Definition at line 189 of file GeometryBuffer.cs.

Referenced by PushObject().

int GeometryBuffer.numObjects
get

Definition at line 188 of file GeometryBuffer.cs.

Referenced by OBJ.Build(), and PopulateMeshes().


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