Mario Botsch, Daniel Sieger, Philipp Moeller, and Andreas Fabri
The surface mesh class provided by this package is an implementation of the halfedge data structure allowing to represent polyhedral surfaces. It is an alternative to the packages
Halfedge Data Structures and
3D Polyhedral Surface. The main differences are that it is indexed based and not pointer based, and that the mechanism for adding information to vertices, halfedges, edges, and faces is much simpler and can be used at runtime and not at compile time.
Classes
|
class | CGAL::Surface_mesh< P > |
| This class is a data structure that can be used as halfedge data structure or polyhedral surface. It is an alternative to the classes HalfedgeDS and Polyhedron_3 defined in the packages Halfedge Data Structures and 3D Polyhedral Surface. The main difference is that it is indexed based and not pointer based, and that the mechanism for adding information to vertices, halfedges, and faces is much simpler and done at runtime and not at compile time. When elements are removed, they are only marked as removed, and a garbage collection function must be called to really remove them. More...
|
|
|
std::istream & | CGAL::sm_skip_comments (std::istream &in) |
|
template<typename P > |
std::ostream & | operator<< (std::ostream &os, const Surface_mesh< P > &sm) |
|
template<typename P > |
std::istream & | operator>> (std::istream &is, Surface_mesh< P > &sm) |
|
template<typename P >
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const Surface_mesh< P > & |
sm |
|
) |
| |
|
related |
Inserts the surface mesh in an output stream in Ascii OFF format. Only the point property is inserted in the stream.
- Precondition
operator<<(std::ostream&,const P&)
must be defined.
template<typename P >
std::istream & operator>> |
( |
std::istream & |
is, |
|
|
Surface_mesh< P > & |
sm |
|
) |
| |
|
related |
Extracts the surface mesh from an input stream in Ascii OFF format. The operator only reads the point property and does not read files with vertex normals or textures.
- Precondition
operator>>(std::istream&,const P&)
must be defined.