#include <mesh.h>
Public Member Functions | |
Obj () | |
The construtor specifies a Obj class. | |
~Obj () | |
The Obj class destructor. Don't forget to delete the surface afterwards. | |
SurfIter | surfs_begin () |
Returns iterator that points to the first surface of object. | |
SurfIter | surfs_end () |
Returns iterator that points to the last surface of the mesh. | |
bool | add_surf (Surf *s) |
Adds a surface. | |
void | rm_surf (Surf *s) |
Removes a surface from Obj. | |
Private Attributes | |
SurfContainer | sc_ |
Set of surfaces. |
Definition at line 91 of file mesh.h.
|
The construtor specifies a Obj class.
Definition at line 97 of file mesh.h.
|
|
The Obj class destructor. Don't forget to delete the surface afterwards.
Definition at line 102 of file mesh.h.
|
|
Adds a surface.
Definition at line 115 of file mesh.h. References sc_. 00115 { std::pair<SurfIter, bool> r = sc_.insert(s); return r.second; }
|
|
Removes a surface from Obj.
Definition at line 119 of file mesh.h. References sc_. 00119 { sc_.erase(s); };
|
|
Returns iterator that points to the first surface of object.
Definition at line 106 of file mesh.h. References sc_. 00106 { return sc_.begin(); };
|
|
Returns iterator that points to the last surface of the mesh.
Definition at line 110 of file mesh.h. References sc_. 00110 { return sc_.end(); };
|
|
Set of surfaces.
Definition at line 93 of file mesh.h. Referenced by add_surf(), rm_surf(), surfs_begin(), and surfs_end(). |