Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Types | Public Member Functions
pcl::geometry::MeshIO< MeshT > Class Template Reference

Read / write the half-edge mesh from / to a file. More...

#include <pcl/geometry/mesh_base.h>

Public Types

typedef MeshT Mesh
 
typedef Mesh::Vertex Vertex
 
typedef Mesh::HalfEdge HalfEdge
 
typedef Mesh::Face Face
 
typedef Mesh::Vertices Vertices
 
typedef Mesh::HalfEdges HalfEdges
 
typedef Mesh::Faces Faces
 
typedef Mesh::VertexIndex VertexIndex
 
typedef Mesh::HalfEdgeIndex HalfEdgeIndex
 
typedef Mesh::FaceIndex FaceIndex
 

Public Member Functions

 MeshIO ()
 Constructor. More...
 
bool read (const std::string &filename, Mesh &mesh) const
 Read the mesh from a file with the given filename. More...
 
bool write (const std::string &filename, const Mesh &mesh) const
 Write the mesh to a file with the given filename. More...
 

Detailed Description

template<class MeshT>
class pcl::geometry::MeshIO< MeshT >

Read / write the half-edge mesh from / to a file.

Template Parameters
MeshTe.g. pcl::geometry::TriangleMesh or pcl::geometry::PolygonMesh
Author
Martin Saelzle

Definition at line 76 of file mesh_base.h.

Member Typedef Documentation

template<class MeshT >
typedef Mesh::Face pcl::geometry::MeshIO< MeshT >::Face

Definition at line 70 of file mesh_io.h.

template<class MeshT >
typedef Mesh::FaceIndex pcl::geometry::MeshIO< MeshT >::FaceIndex

Definition at line 78 of file mesh_io.h.

template<class MeshT >
typedef Mesh::Faces pcl::geometry::MeshIO< MeshT >::Faces

Definition at line 74 of file mesh_io.h.

template<class MeshT >
typedef Mesh::HalfEdge pcl::geometry::MeshIO< MeshT >::HalfEdge

Definition at line 69 of file mesh_io.h.

template<class MeshT >
typedef Mesh::HalfEdgeIndex pcl::geometry::MeshIO< MeshT >::HalfEdgeIndex

Definition at line 77 of file mesh_io.h.

template<class MeshT >
typedef Mesh::HalfEdges pcl::geometry::MeshIO< MeshT >::HalfEdges

Definition at line 73 of file mesh_io.h.

template<class MeshT >
typedef MeshT pcl::geometry::MeshIO< MeshT >::Mesh

Definition at line 66 of file mesh_io.h.

template<class MeshT >
typedef Mesh::Vertex pcl::geometry::MeshIO< MeshT >::Vertex

Definition at line 68 of file mesh_io.h.

template<class MeshT >
typedef Mesh::VertexIndex pcl::geometry::MeshIO< MeshT >::VertexIndex

Definition at line 76 of file mesh_io.h.

template<class MeshT >
typedef Mesh::Vertices pcl::geometry::MeshIO< MeshT >::Vertices

Definition at line 72 of file mesh_io.h.

Constructor & Destructor Documentation

template<class MeshT >
pcl::geometry::MeshIO< MeshT >::MeshIO ( )
inline

Constructor.

Definition at line 81 of file mesh_io.h.

Member Function Documentation

template<class MeshT >
bool pcl::geometry::MeshIO< MeshT >::read ( const std::string &  filename,
Mesh mesh 
) const
inline

Read the mesh from a file with the given filename.

Parameters
[in]filenamePath to the file.
[out]meshThe loaded mesh.
Returns
true if success.

Definition at line 91 of file mesh_io.h.

template<class MeshT >
bool pcl::geometry::MeshIO< MeshT >::write ( const std::string &  filename,
const Mesh mesh 
) const
inline

Write the mesh to a file with the given filename.

Parameters
[in]filenamePath to the file.
[in]meshThe saved mesh.
Returns
true if success

Definition at line 220 of file mesh_io.h.


The documentation for this class was generated from the following files: