mirror of https://github.com/CGAL/cgal
Missing "template"
This commit is contained in:
parent
7453cfe396
commit
dd855e0a43
|
|
@ -48,7 +48,7 @@ int main()
|
|||
ransac.set_input(points);
|
||||
|
||||
// Registers planar shapes via template method.
|
||||
ransac.add_shape_factory<Plane>();
|
||||
ransac.template add_shape_factory<Plane>();
|
||||
|
||||
// Detects registered shapes with default parameters.
|
||||
ransac.detect();
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ int main()
|
|||
ransac.set_input(points);
|
||||
|
||||
// Registers planar shapes via template method.
|
||||
ransac.add_shape_factory<Plane>();
|
||||
ransac.template add_shape_factory<Plane>();
|
||||
|
||||
// Detects registered shapes with default parameters.
|
||||
ransac.detect();
|
||||
|
|
|
|||
|
|
@ -57,15 +57,11 @@ int main()
|
|||
ransac.set_input(points);
|
||||
|
||||
// Register shapes for detection
|
||||
ransac.add_shape_factory<Plane>();
|
||||
|
||||
ransac.add_shape_factory<Sphere>();
|
||||
|
||||
ransac.add_shape_factory<Cylinder>();
|
||||
|
||||
ransac.add_shape_factory<Cone>();
|
||||
|
||||
ransac.add_shape_factory<Torus>();
|
||||
ransac.template add_shape_factory<Plane>();
|
||||
ransac.template add_shape_factory<Sphere>();
|
||||
ransac.template add_shape_factory<Cylinder>();
|
||||
ransac.template add_shape_factory<Cone>();
|
||||
ransac.template add_shape_factory<Torus>();
|
||||
|
||||
// Sets parameters for shape detection.
|
||||
Efficient_ransac::Parameters parameters;
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ int main()
|
|||
ransac.set_input(points);
|
||||
|
||||
// Registers detection of planes
|
||||
ransac.add_shape_factory<Plane>();
|
||||
ransac.template add_shape_factory<Plane>();
|
||||
|
||||
// Measures time before setting up the shape detection.
|
||||
CGAL::Timer time;
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ shape. The implementation follows \cgalCite{schnabel2007efficient}.
|
|||
/*!
|
||||
Registers in the detection engine the shape type `ShapeType` that must inherit from `Shape_base`.
|
||||
For example, for registering a plane as detectable shape you should call
|
||||
`add_shape_factory< Shape_detection_3::Plane<Traits> >();`
|
||||
`ransac.template add_shape_factory< Shape_detection_3::Plane<Traits> >();`
|
||||
*/
|
||||
template <class ShapeType>
|
||||
void add_shape_factory() {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ bool test_cone_parameters() {
|
|||
|
||||
Efficient_ransac ransac;
|
||||
|
||||
ransac.add_shape_factory<Cone>();
|
||||
ransac.template add_shape_factory<Cone>();
|
||||
|
||||
ransac.set_input(points);
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ bool test_cylinder_parameters() {
|
|||
|
||||
Efficient_ransac ransac;
|
||||
|
||||
ransac.add_shape_factory<Cylinder>();
|
||||
ransac.template add_shape_factory<Cylinder>();
|
||||
|
||||
ransac.set_input(points);
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ bool test_plane_connected_component() {
|
|||
|
||||
Efficient_ransac ransac;
|
||||
|
||||
ransac.add_shape_factory<Plane>();
|
||||
ransac.template add_shape_factory<Plane>();
|
||||
|
||||
ransac.set_input(points);
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ bool test_plane_parameters() {
|
|||
|
||||
Efficient_ransac ransac;
|
||||
|
||||
ransac.add_shape_factory<Plane>();
|
||||
ransac.template add_shape_factory<Plane>();
|
||||
|
||||
ransac.set_input(points);
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ bool test_sphere_parameters() {
|
|||
|
||||
Efficient_ransac ransac;
|
||||
|
||||
ransac.add_shape_factory<Sphere>();
|
||||
ransac.template add_shape_factory<Sphere>();
|
||||
|
||||
ransac.set_input(points);
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ bool test_torus_parameters() {
|
|||
|
||||
Efficient_ransac ransac;
|
||||
|
||||
ransac.add_shape_factory<Torus>();
|
||||
ransac.template add_shape_factory<Torus>();
|
||||
|
||||
ransac.set_input(points);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue