MEPP2 Project
test_spanning_tree_comparator_aif.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 
18 
21 
22 #include <string>
23 
24 using namespace FEVV;
25 using namespace FEVV::Comparator;
26 
27 void
28 testSpanningTreeComparatorSurfaceMesh(const std::string& filename)
29 {
31  /**********************************************************************************************************/
32  PtrMeshT pm;
34  if(!(pm = in.read(filename)))
35  {
36  std::cout << "Unable to read file " << filename << std::endl;
37  return;
38  }
39  auto pos_pm = get(boost::vertex_point, *pm);
40  /**********************************************************************************************************/
41  auto st = get_spanning_tree_comparator(*pm, 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 }
Spanning_tree_vertex_edge_comparator.hpp
FEVV::Comparator
Definition: Spanning_tree_vertex_edge_comparator.hpp:25
FEVV::DataStructures::AIF::AIFMeshReader::read
ptr_output read(const std::string &filePath)
Definition: AIFMeshReader.inl:50
testSpanningTreeComparatorSurfaceMesh
void testSpanningTreeComparatorSurfaceMesh(const std::string &filename)
Definition: test_spanning_tree_comparator_aif.cpp:28
properties_aif.h
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
PtrMeshT
FEVV::DataStructures::AIF::AIFMesh::ptr_mesh PtrMeshT
Definition: test_smoothing_aif.cpp:19
FEVV::DataStructures::AIF::AIFMesh::ptr_mesh
boost::shared_ptr< Self > ptr_mesh
Definition: AIFMesh.hpp:51
DataStructures_aif.h
Geometry_traits_aif.h
FEVV::DataStructures::AIF::AIFMeshReader
This class represents an AIFMesh object reader. An AIFMeshReader reads a mesh file (....
Definition: AIFMeshReader.hpp:37
AIFMeshReader.hpp
FileUtilities.hpp
main
int main(int narg, char **argv)
Definition: test_spanning_tree_comparator_aif.cpp:45