Public Types | Public Member Functions
pcl::geometry::MeshIO< MeshT > Class Template Reference

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

#include <mesh_io.h>

List of all members.

Public Types

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

Public Member Functions

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

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
Todo:
  • Only writes the topology (not the mesh data).
  • Supports only ascii.
  • Does not consider the mesh traits (e.g. manifold or not)

Definition at line 63 of file mesh_io.h.


Member Typedef Documentation

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

Definition at line 71 of file mesh_io.h.

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

Definition at line 79 of file mesh_io.h.

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

Definition at line 75 of file mesh_io.h.

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

Definition at line 70 of file mesh_io.h.

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

Definition at line 78 of file mesh_io.h.

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

Definition at line 74 of file mesh_io.h.

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

Definition at line 67 of file mesh_io.h.

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

Definition at line 69 of file mesh_io.h.

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

Definition at line 77 of file mesh_io.h.

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

Definition at line 73 of file mesh_io.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 82 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 92 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 221 of file mesh_io.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:43:56