CGAL 6.1 - Homological Discrete Vector Fields
Loading...
Searching...
No Matches
CGAL::HDVF::Icosphere_object_io Class Reference

#include <CGAL/HDVF/Icosphere_object_io.h>

Inherits from

CGAL::HDVF::Mesh_object_io.

Public Types

using Index = size_t
 
using Lookup = std::map< std::pair< Index, Index >, Index >
 

Public Member Functions

 Icosphere_object_io (size_t subdivisions, const IONodeType &c=IONodeType({0, 0, 0}), double r=1.)
 
Index vertex_for_edge (Lookup &lookup, Index first, Index second)
 
void subdivide ()
 
void rigid_transformation (const IONodeType &c, double r)
 
- Public Member Functions inherited from CGAL::HDVF::Mesh_object_io
 Mesh_object_io ()
 
 Mesh_object_io (int d, const std::vector< IONodeType > &vnodes, const std::vector< IOCellType > &vcells)
 Constructor from a vector of IONodeType (vertices coordinates) and a vector of simplices.
 
 Mesh_object_io (int d, const std::vector< std::vector< double > > &vnodes, const std::vector< IOCellType > &vcells)
 Constructor from a vector of vectors of doubles (vertices coordinates) and a vector of simplices.
 
 Mesh_object_io (const Mesh_object_io &m)
 
std::vector< std::vector< double > > get_nodes ()
 
void push_back (const Mesh_object_io &mesh)
 
void add_node (const IONodeType &v)
 
void clear_cells ()
 
void clear_nodes ()
 
void clear ()
 
void add_cell (const IOCellType &c)
 
size_t cells_of_dim (int q) const
 
bool read_off (const std::string &filename)
 
bool write_off (const std::string &filename)
 
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)
 
void print_infos () const
 
IONodeType barycenter ()
 
double radius (const IONodeType &bary)
 
pair< IONodeType, IONodeTypeBB (double ratio=1.)
 

Static Public Attributes

static const float X =.525731112119133606f
 
static const float Z =.850650808352039932f
 
static const float N =0.f
 
static const std::vector< IONodeTypevertices_ico
 
static const std::vector< IOCellTypetriangles_ico
 

Additional Inherited Members

- Public Attributes inherited from CGAL::HDVF::Mesh_object_io
int dim = 0
 
size_t nvertices
 
size_t ncells
 
size_t nedges
 
std::vector< IONodeTypenodes
 
std::vector< IOCellTypecells
 

Member Data Documentation

◆ triangles_ico

const std::vector<IOCellType> CGAL::HDVF::Icosphere_object_io::triangles_ico
static
Initial value:
=
{
{0,4,1},{0,9,4},{9,5,4},{4,5,8},{4,8,1},
{8,10,1},{8,3,10},{5,3,8},{5,2,3},{2,7,3},
{7,10,3},{7,6,10},{7,11,6},{11,0,6},{0,1,6},
{6,1,10},{9,0,11},{9,11,2},{9,2,5},{7,2,11}
}

◆ vertices_ico

const std::vector<IONodeType> CGAL::HDVF::Icosphere_object_io::vertices_ico
static
Initial value:
=
{
IONodeType({-X,N,Z}), IONodeType({X,N,Z}), IONodeType({-X,N,-Z}), IONodeType({X,N,-Z}),
IONodeType({N,Z,X}), IONodeType({N,Z,-X}), IONodeType({N,-Z,X}), IONodeType({N,-Z,-X}),
IONodeType({Z,X,N}), IONodeType({-Z,X, N}), IONodeType({Z,-X,N}), IONodeType({-Z,-X, N})
}
static const float X
Definition: Icosphere_object_io.h:50
static const float Z
Definition: Icosphere_object_io.h:51
static const float N
Definition: Icosphere_object_io.h:52
The class IONodeType implements a simple data type used to import vertices coordinates (nodes) in var...
Definition: Mesh_object_io.h:47