CGAL 5.2.1 - Shape Detection
|
CGAL::Shape_detection::Efficient_RANSAC_traits<GeomTraits, InputRange, PointMap, NormalMap>
CGAL::Shape_detection::Efficient_RANSAC<Traits>
CGAL::Shape_detection::Plane<Traits>
CGAL::Shape_detection::Sphere<Traits>
CGAL::Shape_detection::Cylinder<Traits>
CGAL::Shape_detection::Cone<Traits>
CGAL::Shape_detection::Torus<Traits>
CGAL::Shape_detection::Region_growing<InputRange, NeighborQuery, RegionType, SeedMap>
CGAL::Shape_detection::Point_set::K_neighbor_query<GeomTraits, InputRange, PointMap>
CGAL::Shape_detection::Point_set::Sphere_neighbor_query<GeomTraits, InputRange, PointMap>
CGAL::Shape_detection::Point_set::Least_squares_line_fit_region<GeomTraits, InputRange, PointMap, NormalMap>
CGAL::Shape_detection::Point_set::Least_squares_plane_fit_region<GeomTraits, InputRange, PointMap, NormalMap>
CGAL::Shape_detection::Point_set::Least_squares_line_fit_sorting<GeomTraits, InputRange, NeighborQuery, PointMap>
CGAL::Shape_detection::Point_set::Least_squares_plane_fit_sorting<GeomTraits, InputRange, NeighborQuery, PointMap>
CGAL::Shape_detection::Polygon_mesh::One_ring_neighbor_query<PolygonMesh, FaceRange>
CGAL::Shape_detection::Polygon_mesh::Least_squares_plane_fit_region<GeomTraits, PolygonMesh, FaceRange, VertexToPointMap>
CGAL::Shape_detection::Polygon_mesh::Least_squares_plane_fit_sorting<GeomTraits, PolygonMesh, NeighborQuery, FaceRange, VertexToPointMap>
CGAL::Shape_detection::deprecated::Shape_detection_traits<GeomTraits, InputRange, PointMap, NormalMap>
CGAL::Shape_detection::deprecated::Region_growing_depr<Traits>
Modules | |
Region Growing | |
Reference Manual for the Region Growing shape detection component. | |
Efficient RANSAC | |
Reference Manual for the Efficient RANSAC shape detection component. | |
Deprecated | |
Deprecated components. | |
Functions | |
template<typename PointRange , typename PointMap , typename PlaneRange , typename PlaneMap , typename IndexMap , typename Kernel > | |
void | CGAL::regularize_planes (const PointRange &points, PointMap point_map, PlaneRange &planes, PlaneMap plane_map, IndexMap index_map, const Kernel &, bool regularize_parallelism, bool regularize_orthogonality, bool regularize_coplanarity, bool regularize_axis_symmetry, double tolerance_angle=25.0, double tolerance_coplanarity=0.01, typename Kernel::Vector_3 symmetry_direction=typename Kernel::Vector_3(0.0, 0.0, 1.0)) |
Given a set of detected planes with their corresponding inlier sets, this function enables to regularize the planes: More... | |
void CGAL::regularize_planes | ( | const PointRange & | points, |
PointMap | point_map, | ||
PlaneRange & | planes, | ||
PlaneMap | plane_map, | ||
IndexMap | index_map, | ||
const Kernel & | , | ||
bool | regularize_parallelism, | ||
bool | regularize_orthogonality, | ||
bool | regularize_coplanarity, | ||
bool | regularize_axis_symmetry, | ||
double | tolerance_angle = 25.0 , |
||
double | tolerance_coplanarity = 0.01 , |
||
typename Kernel::Vector_3 | symmetry_direction = typename Kernel::Vector_3 (0.0, 0.0, 1.0) |
||
) |
#include <CGAL/Regularization/regularize_planes.h>
Given a set of detected planes with their corresponding inlier sets, this function enables to regularize the planes:
Planes are directly modified. Points are left unaltered, as well as their relationships to planes (no transfer of point from a primitive plane to another).
The implementation follows [3].
PointRange | must be a model of ConstRange with points. |
PointPMap | must be a model of ReadablePropertyMap with value type Kernel::Point_3 . It can be omitted if the value type of the iterator of PointRange is convertible to Point_3<Kernel> . |
PlaneRange | must be a model of Range with planes. |
PlaneMap | must be a model of WritablePropertyMap with value type Kernel::Plane_3 . It can be omitted if the value type of the iterator of PlaneRange is convertible to Plane_3<Kernel> . |
IndexMap | must be a model of ReadablePropertyMap with value type int . |
Kernel | must be a geometric traits class. It can be omitted and deduced automatically from the value type of PointMap . |
points | ConstRange of points |
point_map | property map: value_type of typename PointRange::const_iterator -> Point_3 |
planes | range of planes |
plane_map | property map: value_type of typename PlaneRange::iterator -> Plane_3 |
index_map | property map: index of point std::size_t -> index of plane int (-1 if the point is not assigned to a plane) |
regularize_parallelism | select whether parallelism is regularized or not |
regularize_orthogonality | select whether orthogonality is regularized or not |
regularize_coplanarity | select whether coplanarity is regularized or not |
regularize_axis_symmetry | select whether axis symmetry is regularized or not |
tolerance_angle | tolerance of deviation between normal vectors of planes (in degrees) used for parallelism, orthogonality, and axis symmetry. Default value is 25 degrees. |
tolerance_coplanarity | maximal distance between two parallel planes such that they are considered coplanar. Default value is 0.01. |
symmetry_direction | chosen axis for symmetry regularization. Default value is the Z axis. |