Struct GenericMesh
struct GenericMesh
;
Fields
Name | Type | Description |
---|---|---|
lines
|
uint[][] | |
materials
|
GenericMesh | |
triangles
|
GenericMesh | |
vertices
|
gfm |
Methods
Name | Description |
---|---|
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
Name | Description |
---|---|
Material
|
|
Triangle
|