Chunk Struct Reference

Class representing a sub-mesh containing local vertices and triangles. More...

Attributes

Vector3[] vertices
 Array of vertices. More...
 
int[] triangles
 Triangles (or faces) contains the index of its three vertices. More...
 
byte[] colors
 Colors of the vertices. More...
 

Detailed Description

Class representing a sub-mesh containing local vertices and triangles.

Variables

◆ vertices

Vector3 [] vertices

Array of vertices.

Vertices are defined by a 3D point.

◆ triangles

int [] triangles

Triangles (or faces) contains the index of its three vertices.

It corresponds to the 3 vertices of the triangle {v1, v2, v3}.

◆ colors

byte [] colors

Colors of the vertices.