Magnetoculus Visualisation de champs en VR avec Oculus

Public Member Functions | Public Attributes | List of all members
MeshInformation Class Reference

## Public Member Functions
| MeshInformation (Mesh mesh)
void | UpdateMesh ()
void | Reset ()
int | GetVerticesSize ()

## Public Attributes
Mesh | m_Mesh
List< Vector3 > | m_Vertices
List< Vector2 > | m_UV
List< Color > | m_Colors
List< int > | m_Triangles
int | m_VerticesIndex

## Detailed Description

Class that manages a mesh. It stores a list of vertices, triangles and UV, and an index to help the generation process to compute those lists. Whenever the lists are ready the call to the method UpdateMesh will set up the mesh.

## Constructor & Destructor Documentation

## ◆ MeshInformation()

MeshInformation.MeshInformation | ( | Mesh | mesh | ) |

## Member Function Documentation

## ◆ GetVerticesSize()

int MeshInformation.GetVerticesSize | ( |  | ) |

## ◆ Reset()

void MeshInformation.Reset | ( |  | ) |

## ◆ UpdateMesh()

void MeshInformation.UpdateMesh | ( |  | ) |

Clear the mesh and sets its vertices / triangles / UV.

## Member Data Documentation

## ◆ m_Colors

List<Color> MeshInformation.m_Colors

## ◆ m_Mesh

Mesh MeshInformation.m_Mesh

## ◆ m_Triangles

List<int> MeshInformation.m_Triangles

## ◆ m_UV

List<Vector2> MeshInformation.m_UV

## ◆ m_Vertices

List<Vector3> MeshInformation.m_Vertices

## ◆ m_VerticesIndex

int MeshInformation.m_VerticesIndex

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

- Assets/Scripts/Representation/Generator.cs