#include <CGAL/HDVF/Tet_object_io.h>
CGAL::Homological_discrete_vector_field::Mesh_object_io< Traits >.
template<typename Traits>
class CGAL::Homological_discrete_vector_field::Tet_object_io< Traits >
The class Tet_object_io is an intermediate IO class, used to load a tetgen triangulation (for Hdvf_duality) into a Mesh_object_io structure.
- Template Parameters
-
| Traits | a geometric traits class model of the HDVFTraits concept. |
|
| | Tet_object_io (const std::string &prefix) |
| | Builds a Tet_object_io from tetgen files.
|
| |
| int | dimension () const |
| | Returns the dimension of the Mesh_object_io.
|
| |
|
| 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) |
| | Build a Mesh_object_io for the bounding box of diagonal BB_min - BBmax.
|
| |
| const std::vector< Point > & | nodes () const |
| | Returns the vector of nodes (ie.
|
| |
| int | number_of_nodes () const |
| | Returns the number of nodes (ie.
|
| |
|
const std::vector< Io_cell_type > & | cells () const |
| | Returns the vector of cells.
|
| |
| void | set_node (size_t i, const Point &P) |
| | Update the coordinates of a node (ie.
|
| |
| void | push_back (const Mesh_object_io &mesh) |
| | Add a Mesh_object_io to the current Mesh_object_io.
|
| |
|
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 |
| |
|
|
void | add_nodes () |
| |
|
void | create_nodes () |
| |
|
void | add_edges () |
| |
|
void | add_faces () |
| |
|
void | add_tets () |
| |
|
template<typename CoefficientRing > |
| void | write_vtk (const std::string &filename, const std::vector< Point > &nodes, const std::vector< Io_chain_type > &chains, const std::vector< CoefficientRing > *labels=NULL, const std::string scalar_type="none") |
| |
|
|
typedef Traits::Point | Point |
| |
|
typedef Traits::Bbox | Bbox |
| |
|
int | _dim = 0 |
| |
|
size_t | _nvertices |
| |
|
size_t | _ncells |
| |
|
size_t | _nedges |
| |
|
std::vector< Point > | _nodes |
| |
|
std::vector< Io_cell_type > | _cells |
| |
◆ Tet_object_io()
template<typename Traits >
Builds a Tet_object_io from tetgen files.
- Parameters
-
| prefix | Prefix of tetgen files containing the tetrahedral mesh. |
- Exceptions
-
| File_not_found | If the prefix is incorrect (corresponding tetgen files do not exists), raises a `std::runtime_error`. |