GenericMesh

Members

Functions

dup
GenericMesh dup()
Undocumented in source. Be warned that the author may not have intended to support it.
polygonCut
void polygonCut(vec2f[] polygon, bool removeInside)
Undocumented in source. Be warned that the author may not have intended to support it.
removeUnusedVertices
void removeUnusedVertices()
Undocumented in source. Be warned that the author may not have intended to support it.
shuffle
void shuffle()

Shuffle all data, while keeping the same 3d model

toObj
void toObj(string file, string objectName)
Undocumented in source. Be warned that the author may not have intended to support it.
triangulatePolygon
void triangulatePolygon(uint32_t[] polygon)

Triangulates a set of vertices and adds the created triangles to the mesh (ear clipping algorithm)

validate
void validate()

Throw an exception if mesh contains invalid indices

Static functions

fromObj
GenericMesh fromObj(File obj, string objectName)

Build a generic mesh by reading a Wavefront OBJ file

Structs

Material
struct Material
Undocumented in source.
Triangle
struct Triangle
Undocumented in source.

Variables

lines
uint32_t[][] lines;
Undocumented in source.
materials
Material[] materials;
Undocumented in source.
triangles
Triangle[] triangles;
Undocumented in source.
vertices
vec3f[] vertices;
Undocumented in source.

Meta