63 #ifndef KJB_TRIANGULAR_MESH_H
64 #define KJB_TRIANGULAR_MESH_H
122 void read(std::istream & in)
127 void write(std::ostream & ost)
Triangular_mesh()
Constructs a triangular mesh.
Definition: gr_triangular_mesh.h:90
Definition for the Int_matrix class, a thin wrapper on the KJB Int_matrix struct and its related func...
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
virtual ~Triangular_mesh()
Destructor of a triangular mesh.
Definition: gr_triangular_mesh.h:114
Object thrown when an index argument exceeds the size of a container.
Definition: l_exception.h:399
This class implements matrices, in the linear-algebra sense, restricted to integer-valued elements...
Definition: l_int_matrix.h:71
kjb::Int_matrix _adjacency
Face adjacency matrix.
Definition: gr_triangular_mesh.h:155
Triangular_mesh: a polygonal mesh of which each face is a triangle.
Definition: gr_triangular_mesh.h:85
virtual Triangular_mesh * clone() const
Clones this mesh.
Definition: gr_triangular_mesh.cpp:122
Abstract class of connected polygons (faces) forming a mesh.
Definition: gr_polygon.h:36
Abstract class of connected polygons (faces) forming a mesh. We assume that each edge is shared betwe...
Definition: gr_polymesh.h:89
void read(std::istream &in)
Reads this triangular mesh from an input stream.
Definition: gr_triangular_mesh.cpp:290
void set_adjacency_matrix(const char *fname)
Gets the adjacency matrix from a file and saves it in the class parameter.
Definition: gr_triangular_mesh.cpp:221
Exception often thrown when wrapped C functions return error codes.
Definition: l_exception.h:262
virtual unsigned int adjacent_face(uint32_t i, uint32_t p) const
Returns the face adjacent to another on a shared edge.
Definition: gr_triangular_mesh.cpp:137
virtual void add_face(const Polygon &face)
Definition: gr_triangular_mesh.cpp:153
Object thrown when an argument to a function is not acceptable.
Definition: l_exception.h:377
void create_adjacency_matrix()
Finds the adjacency relationships between faces.
Definition: gr_triangular_mesh.cpp:161
get the indices of edges in each direction for i
Definition: APPgetLargeConnectedEdges.m:48
virtual Triangular_mesh & operator=(const Triangular_mesh &t)
Copies a triangular mesh into this one.
Definition: gr_triangular_mesh.cpp:109
Object thrown when input or output fails.
Definition: l_exception.h:496
void write(std::ostream &ost) const
Writes this mesh to an output stream.
Definition: gr_triangular_mesh.cpp:270
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...
bool _is_adjacency_consistent
Definition: gr_triangular_mesh.h:160