Go to the documentation of this file.
32 std::ifstream in(filename);
38 std::cout <<
"failed";
42 catch(
const std::length_error &le)
44 std::cerr <<
"[OpenMesh] Exception catched while reading input file "
45 << filename <<
": " << le.what() << std::endl;
46 BOOST_ASSERT_MSG(
false,
47 "[OpenMesh] Exception catched while reading input file.");
51 typedef boost::property_map< Mesh, boost::face_index_t >::const_type
53 Face_index_map face_index_pm =
get(boost::face_index, m);
54 boost::vector_property_map< Vector, Face_index_map > normals(face_index_pm);
59 get(boost::vertex_point, m),
66 std::cout <<
"Done." << std::endl;
71 main(
int narg,
char **argv)
75 std::cout <<
"Usage: " << argv[0]
76 <<
" filename; filename being an off file." << std::endl;
int main(int narg, char **argv)
void print_face_normals(const HalfedgeGraph &g, NormalMap nm)
Print all faces normals.
FEVV::PCLPointCloudPointMap::value_type get(const FEVV::PCLPointCloudPointMap &pm, FEVV::PCLPointCloudPointMap::key_type key)
Specialization of get(point_map, key) for PCLPointCloud.
Interfaces for plugins These interfaces will be used for different plugins.
void read_mesh(const std::string &filename, FEVV::CGALPointSet &g, PMapsContainer &pmaps, bool=false)
Load mesh from file.
void calculate_face_normals(const HalfedgeGraph &g, const PointMap &pm, FaceNormalMap fnm, const GeometryTraits >)
Calculate "some" normal of all the faces of the considered mesh and populate the argument provided Fa...
FEVV::DataStructures::AIF::AIFMesh Mesh
OpenMesh::PolyMesh_ArrayKernelT< MyTraits > MeshOpenMesh
This class represents an AIF structure. AIF structure can deal with both manifold and non-manifold su...
void test_open_mesh(char *filename)