IncMesh

Undocumented in source.

Constructors

this
this(MeshData mesh)

Constructs a new IncMesh

Members

Functions

applyOffsets
void applyOffsets(vec2[] offsets)
Undocumented in source. Be warned that the author may not have intended to support it.
autoTriangulate
IncMesh autoTriangulate()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()

Clears the mesh of everything

draw
void draw(mat4 trans)
Undocumented in source. Be warned that the author may not have intended to support it.
drawLines
void drawLines(mat4 trans, vec4 color)

Draws the mesh

drawPoint
void drawPoint(vec2 point, vec4 color, mat4 trans, float size)
Undocumented in source. Be warned that the author may not have intended to support it.
drawPointSubset
void drawPointSubset(MeshVertex*[] subset, vec4 color, mat4 trans, float size)
Undocumented in source. Be warned that the author may not have intended to support it.
drawPoints
void drawPoints(mat4 trans)
Undocumented in source. Be warned that the author may not have intended to support it.
export_
MeshData export_()

Exports the working mesh to a MeshData object.

flipHorz
void flipHorz()

Flips all vertices horizontally

flipVert
void flipVert()

Flips all vertices vertically

getBounds
void getBounds(vec2 min, vec2 max)
Undocumented in source. Be warned that the author may not have intended to support it.
getEdgeCount
size_t getEdgeCount()
Undocumented in source. Be warned that the author may not have intended to support it.
getInRect
MeshVertex*[] getInRect(vec2 min, vec2 max)
Undocumented in source. Be warned that the author may not have intended to support it.
getOffsets
vec2[] getOffsets()
Undocumented in source. Be warned that the author may not have intended to support it.
getVertexCount
size_t getVertexCount()
Undocumented in source. Be warned that the author may not have intended to support it.
getVertexFromPoint
MeshVertex* getVertexFromPoint(vec2 point)
Undocumented in source. Be warned that the author may not have intended to support it.
import_
void import_(MeshData mesh)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointOverVertex
bool isPointOverVertex(vec2 point)
Undocumented in source. Be warned that the author may not have intended to support it.
refresh
void refresh()

Refreshes graphical portion of the mesh

remove
void remove(MeshVertex* vert)
Undocumented in source. Be warned that the author may not have intended to support it.
removeVertexAt
void removeVertexAt(vec2 point)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()

Resets mesh to prior state

setBackOffsets
void setBackOffsets(vec2[] offsets)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

changed
bool changed;
Undocumented in source.
selectRadius
float selectRadius;
Undocumented in source.
vertices
MeshVertex*[] vertices;
Undocumented in source.

Meta