#include <Mesh.h>
Public Member Functions | |
Mesh () | |
~Mesh () | |
void | write_XML (const QString &filename) |
void | write_XML (QTextStream &cout) |
void | add_triangle (Triangle *t) |
void | add_vertex (Vertex *p) |
void | remove_triangle (Triangle *t) |
void | remove_vertex (Vertex *p) |
QDict< Triangle > & | get_triangles () |
const QDict< Vertex > & | get_vertices () const |
Vertex * | find_vertex (const QString &id) |
void | clear () |
An object of this class stores objects of class Vertex and Triangle.
Definition at line 49 of file Mesh.h.
|
Constructor |
|
Destructor. Does nothing. |
|
Clear mesh. Delete all vertices and triangles.
|
|
Find vertex with identifier Definition at line 137 of file Mesh.h. References find_vertex(). Referenced by find_vertex(). |
|
Get all triangles.
|
|
Write mesh to stream Definition at line 103 of file Mesh.cpp. References write_XML(). |
|
Write mesh to file Example of output data:
Definition at line 92 of file Mesh.cpp. References write_XML(). Referenced by write_XML(). |