MEPP2 Project
test_spanning_tree_comparator_openmesh.cpp
Go to the documentation of this file.
1 // Copyright (c) 2012-2022 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as
6 // published by the Free Software Foundation; either version 3 of
7 // the License, or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 
13 
16 
17 #include <OpenMesh/Core/IO/MeshIO.hh>
18 
20 
22 
23 #include <string>
24 
25 using namespace FEVV;
26 using namespace FEVV::Comparator;
27 
28 void
29 testSpanningTreeComparatorSurfaceMesh(const std::string& filename)
30 {
31  typedef FEVV::MeshOpenMesh Mesh;
32  /**********************************************************************************************************/
33  Mesh m;
34  if(!OpenMesh::IO::read_mesh(m, filename))
35  {
36  std::cout << "Unable to read file " << filename << std::endl;
37  return;
38  }
39  auto pos_pm = get(boost::vertex_point, m);
40  /**********************************************************************************************************/
41  auto st = get_spanning_tree_comparator(m, pos_pm, false);
42 }
43 
44 int
45 main(int narg, char **argv)
46 {
47  if(narg < 2)
48  {
49  std::cout << "Usage: " << argv[0]
50  << " filename; filename being an off file." << std::endl;
51  exit(EXIT_FAILURE);
52  }
53 
55  return 0;
56 }
Geometry_traits_openmesh.h
testSpanningTreeComparatorSurfaceMesh
void testSpanningTreeComparatorSurfaceMesh(const std::string &filename)
Definition: test_spanning_tree_comparator_openmesh.cpp:29
FEVV::Comparator
Definition: Spanning_tree_vertex_edge_comparator.hpp:25
FEVV::get
FEVV::PCLPointCloudPointMap::value_type get(const FEVV::PCLPointCloudPointMap &pm, FEVV::PCLPointCloudPointMap::key_type key)
Specialization of get(point_map, key) for PCLPointCloud.
Definition: Graph_properties_pcl_point_cloud.h:117
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition: Assert.h:16
FEVV::Comparator::get_spanning_tree_comparator
static Spanning_tree_vertex_edge_comparator< Graph, PointMap, GeometryTraits > get_spanning_tree_comparator(const Graph &g, const PointMap &pm, bool tie_break_detection=true)
Definition: Spanning_tree_vertex_edge_comparator.hpp:663
FEVV::Filters::read_mesh
void read_mesh(const std::string &filename, FEVV::CGALPointSet &g, PMapsContainer &pmaps, bool=false)
Load mesh from file.
Definition: cgal_point_set_reader.hpp:110
main
int main(int narg, char **argv)
Definition: test_spanning_tree_comparator_openmesh.cpp:45
Mesh
FEVV::DataStructures::AIF::AIFMesh Mesh
Definition: test_complying_concepts_aif.cpp:18
DataStructures_openmesh.h
properties_openmesh.h
FEVV::MeshOpenMesh
OpenMesh::PolyMesh_ArrayKernelT< MyTraits > MeshOpenMesh
Definition: DataStructures_openmesh.h:51
FEVV::DataStructures::AIF::AIFMesh
This class represents an AIF structure. AIF structure can deal with both manifold and non-manifold su...
Definition: AIFMesh.hpp:47
Spanning_tree_vertex_edge_comparator.hpp
FileUtilities.hpp