Class Mesh
Class representing a 3D mesh, including its geometry and material information.
Inherited Members
Namespace: Genesis.Graphics
Assembly: Genesis.dll
Syntax
public class Mesh
Constructors
Mesh()
Constructor for the Mesh class. Initializes properties and collections.
Declaration
public Mesh()
Properties
Faces
List of data representing the faces of the mesh.
Declaration
public List<float> Faces { get; set; }
Property Value
Type | Description |
---|---|
List<float> |
Indicies
List of indices defining the mesh faces.
Declaration
public List<int> Indicies { get; set; }
Property Value
Type | Description |
---|---|
List<int> |
Material
Index of the material associated with the mesh.
Declaration
public Material Material { get; set; }
Property Value
Type | Description |
---|---|
Material |
Name
Name of the mesh
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Normals
List of normal vectors for the mesh vertices.
Declaration
public List<float> Normals { get; set; }
Property Value
Type | Description |
---|---|
List<float> |
Propeterys
A collection of user-defined properties associated with the mesh.
Declaration
public Dictionary<string, object> Propeterys { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> |
TextureCords
List of texture coordinates for the mesh vertices.
Declaration
public List<float> TextureCords { get; set; }
Property Value
Type | Description |
---|---|
List<float> |
Vericies
List of vertex coordinates for the mesh.
Declaration
public List<float> Vericies { get; set; }
Property Value
Type | Description |
---|---|
List<float> |