MEPP2 Project
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Variables
Typedefs
a
c
e
f
h
i
m
p
r
s
t
v
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
m
n
o
p
q
r
s
t
v
w
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
w
x
Variables
c
d
e
f
i
l
m
n
o
p
r
s
t
v
Typedefs
a
c
e
f
g
h
i
k
l
m
n
o
p
r
t
v
w
Enumerations
Enumerator
Macros
_
a
b
c
h
i
m
n
o
p
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Testing
CGAL
LCC
test_spanning_tree_comparator_lcc.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
12
#include "
FEVV/DataStructures/DataStructures_cgal_linear_cell_complex.h
"
13
14
#include "
FEVV/Wrappings/Geometry_traits_cgal_linear_cell_complex.h
"
15
#include "
FEVV/Wrappings/properties_linear_cell_complex.h
"
16
17
#include "
FEVV/Tools/Comparator/Spanning_tree_vertex_edge_comparator.hpp
"
18
19
#include "
FEVV/Tools/IO/FileUtilities.hpp
"
20
21
#include <fstream>
22
#include <string>
23
24
using namespace
FEVV
;
25
using namespace
FEVV::Comparator
;
26
27
void
28
testSpanningTreeComparatorSurfaceMesh
(
const
std::string& filename)
29
{
30
std::ifstream in(filename);
31
32
typedef
FEVV::MeshLCC
Mesh
;
33
/**********************************************************************************************************/
34
Mesh
m;
35
try
36
{
37
#if( CGAL_VERSION_NR < CGAL_VERSION_NUMBER(5,3,0) )
38
CGAL::read_off(in, m);
39
#else
40
CGAL::IO::read_OFF(in, m);
41
#endif
42
}
43
catch
(
const
std::length_error &le)
44
{
45
std::cerr <<
"[LCC] Exception caught while reading input file "
<< filename
46
<<
": "
<< le.what() << std::endl;
47
BOOST_ASSERT_MSG(
false
,
"[LCC] Exception caught while reading input file."
);
48
}
49
auto
pos_pm =
get
(boost::vertex_point, m);
50
/**********************************************************************************************************/
51
auto
st =
get_spanning_tree_comparator
(m, pos_pm,
false
);
52
}
53
54
int
55
main
(
int
narg,
char
**argv)
56
{
57
if
(narg < 2)
58
{
59
std::cout <<
"Usage: "
<< argv[0]
60
<<
" filename; filename being an off file."
<< std::endl;
61
exit(EXIT_FAILURE);
62
}
63
64
testSpanningTreeComparatorSurfaceMesh
(argv[1]);
65
return
0;
66
}
DataStructures_cgal_linear_cell_complex.h
FEVV::MeshLCC
CGAL::Linear_cell_complex_for_combinatorial_map< 2, 3, CGALLCCTraits, CGALItem > MeshLCC
Definition:
DataStructures_cgal_linear_cell_complex.h:43
testSpanningTreeComparatorSurfaceMesh
void testSpanningTreeComparatorSurfaceMesh(const std::string &filename)
Definition:
test_spanning_tree_comparator_lcc.cpp:28
FEVV::Comparator
Definition:
Spanning_tree_vertex_edge_comparator.hpp:25
properties_linear_cell_complex.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
Mesh
FEVV::DataStructures::AIF::AIFMesh Mesh
Definition:
test_complying_concepts_aif.cpp:18
main
int main(int narg, char **argv)
Definition:
test_spanning_tree_comparator_lcc.cpp:55
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
Geometry_traits_cgal_linear_cell_complex.h
Generated by
1.8.20