Struct GenericMesh

struct GenericMesh ;

Fields

NameTypeDescription
lines uint[][]
materials GenericMesh.Material[]
triangles GenericMesh.Triangle[]
vertices gfm.math.vector.Vector!(float,3)[]

Methods

NameDescription
dup ()
fromObj (obj, objectName) Build a generic mesh by reading a Wavefront OBJ file
polygonCut (polygon, removeInside)
removeUnusedVertices ()
shuffle () Shuffle all data, while keeping the same 3d model
toObj (file, objectName)
triangulatePolygon (polygon) Triangulates a set of vertices and adds the created triangles to the mesh (ear clipping algorithm)
validate () Throw an exception if mesh contains invalid indices

Inner structs

NameDescription
Material
Triangle