HD Mola
 
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
MolaMesh Class Reference

A mesh describes a 3D surface made of Vertices connected by Faces. More...

Public Member Functions

 MolaMesh ()
 Create a MolaMesh.
 
MolaMesh Copy ()
 Make a copy of this MolaMesh.
 
int FacesCount ()
 Get the face count of this MolaMesh.
 
int VertexCount ()
 Get the vertex count of this MolaMesh.
 

Properties

List< Color > Colors [get, set]
 A list of Mola Colors.
 
List< int[]> Faces [get, set]
 A list of faces.
 
List< Vec3Vertices [get, set]
 A list of Mola Vec3.
 

Detailed Description

A mesh describes a 3D surface made of Vertices connected by Faces.

Constructor & Destructor Documentation

◆ MolaMesh()

MolaMesh ( )
inline

Create a MolaMesh.

Example

A MolaGrid is taking care of getting and setting values and retrieving neighbors in an orthogonal gri...
Definition MolaGrid.cs:12
A mesh describes a 3D surface made of Vertices connected by Faces.
Definition MolaMesh.cs:12

Member Function Documentation

◆ Copy()

MolaMesh Copy ( )
inline

Make a copy of this MolaMesh.

Returns
The copyed MolaMesh

◆ FacesCount()

int FacesCount ( )
inline

Get the face count of this MolaMesh.

Returns
The face count

◆ VertexCount()

int VertexCount ( )
inline

Get the vertex count of this MolaMesh.

Returns
The vertex count

Property Documentation

◆ Faces

List<int[]> Faces
getset

A list of faces.

Each face is represented by an array of vertex index.