Go to the documentation of this file.
14 #include <boost/graph/graph_traits.hpp>
15 #include <boost/graph/properties.hpp>
40 template <
typename HalfedgeGraph,
46 typename vertex_iterator =
typename boost::graph_traits<HalfedgeGraph>::vertex_iterator>
69 double x_min = gt.get_x(
_p_min);
70 double y_min = gt.get_y(
_p_min);
71 double z_min = gt.get_z(
_p_min);
72 double x_max = gt.get_x(
_p_max);
73 double y_max = gt.get_y(
_p_max);
74 double z_max = gt.get_z(
_p_max);
83 x_current = gt.get_x(p_current);
84 y_current = gt.get_y(p_current);
85 z_current = gt.get_z(p_current);
100 if(z_current > z_max)
131 double l = gt.length(
_bb.
vl);
132 double h = gt.length(
_bb.
vh);
133 double p = gt.length(
_bb.
vp);
151 std::cout <<
"Uniform_quantization: max length : " <<
_max_length.first << std::endl;
152 std::cout <<
"Uniform_quantization: quantization step : " <<
_quantization_step << std::endl;
163 if(recompute_quanti_param)
170 double p_min_x = gt.get_x(
_p_min);
171 double p_min_y = gt.get_y(
_p_min);
172 double p_min_z = gt.get_z(
_p_min);
179 double px = gt.get_x(point);
180 double py = gt.get_y(point);
181 double pz = gt.get_z(point);
185 pq_x =
static_cast<uint32_t
>(pow(2.0,
_nb_bits) - 1);
188 pq_y =
static_cast<uint32_t
>(pow(2.0,
_nb_bits) - 1);
191 pq_z =
static_cast<uint32_t
>(pow(2.0,
_nb_bits) - 1);
194 put(
_pm, *vi, new_position);
204 double p_min_x = gt.get_x(
_p_min);
205 double p_min_y = gt.get_y(
_p_min);
206 double p_min_z = gt.get_z(
_p_min);
208 double px = gt.get_x(p);
209 double py = gt.get_y(p);
210 double pz = gt.get_z(p);
214 pq_x =
static_cast<uint32_t
>(pow(2.0,
_nb_bits) - 1);
217 pq_y =
static_cast<uint32_t
>(pow(2.0,
_nb_bits) - 1);
220 pq_z =
static_cast<uint32_t
>(pow(2.0,
_nb_bits) - 1);
231 double l = gt.length(
_bb.
vl);
232 double p = gt.length(
_bb.
vp);
233 double h = gt.length(
_bb.
vh);
235 std::vector<double> bb_dimension{ p, l, h };
242 double x = gt.get_x(
_p_min);
243 double y = gt.get_y(
_p_min);
244 double z = gt.get_z(
_p_min);
246 std::vector<double> init_coord{ x, y, z };
254 return gt.
length(diagonal);
259 const HalfedgeGraph&
_g;
std::pair< typename boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::vertex_iterator, typename boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::vertex_iterator > vertices(const FEVV::DataStructures::AIF::AIFMesh &sm)
Returns the iterator range of the vertices of the mesh.
Refer to Geometry_traits_documentation_dummy for further documentation on provided types and algorith...
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.
boost::graph_traits< MeshT >::vertex_descriptor vertex_descriptor
void put(FEVV::PCLPointCloudPointMap &pm, FEVV::PCLPointCloudPointMap::key_type key, const FEVV::PCLPointCloudPointMap::value_type &value)
Specialization of put(point_map, key, value) for PCLPointCloud.
CoordinateType length(void) const