template<typename TriangleMesh, typename Traits>
class CGAL::Homological_discrete_vector_field::Surface_mesh_io< TriangleMesh, Traits >
The class Surface_mesh_io is an intermediate IO class, used to load a triangle mesh and produce simplicial complexes.
- Template Parameters
-
| TriangleMesh | a model of FaceGraph and HalfedgeGraph concepts, e.g., a CGAL::Surface_mesh. |
| Traits | a geometric traits class model of the HDVFTraits concept. |
|
|
| Surface_mesh_io (const TriangleMesh &mesh) |
| | Constructor from a triangular mesh.
|
| |
|
| Mesh_object_io (int d=0) |
| |
| | Mesh_object_io (int d, const std::vector< Point > &vnodes, const std::vector< Io_cell_type > &vcells, bool sort_data=false) |
| | Constructor from a vector of Point (vertex coordinates) and a vector of simplices.
|
| |
|
| Mesh_object_io (const Point &BBmin, const Point &BBmax) |
| |
|
std::vector< Point > | get_nodes () const |
| |
|
void | push_back (const Mesh_object_io &mesh) |
| |
|
void | add_node (const Point &v) |
| |
|
void | clear_cells () |
| |
|
void | clear_nodes () |
| |
|
void | clear () |
| |
|
void | add_cell (Io_cell_type &c, bool sort_indices=false) |
| |
|
size_t | cells_of_dim (int q) const |
| |
|
bool | read_off (const std::string &filename) |
| |
|
bool | write_off (const std::string &filename) const |
| |
|
void | write_to_vtk (const std::string &filename) |
| |
|
bool | write_simp (const std::string &filename) |
| |
|
bool | read_simp (const std::string &filename) |
| |
|
bool | read_nodes_file (const std::string &filename) |
| |
|
std::ostream & | print_infos (std::ostream &out_stream=std::cout) const |
| |
|
Point | centroid () const |
| |
|
double | radius (const Point &bary) const |
| |
|
Bbox | bbox (double ratio=1.) const |
| |