Skip to content

Commit 0ad2c07

Browse files
committed
weird if
1 parent aa8e893 commit 0ad2c07

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/polygonal_surface_reconstruction.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
#include <CGAL/Surface_mesh.h>
66
#include <CGAL/Shape_detection/Efficient_RANSAC.h>
77
#include <CGAL/Polygonal_surface_reconstruction.h>
8+
9+
#define CGAL_USE_SCIP
10+
811
#include <CGAL/SCIP_mixed_integer_program_traits.h>
12+
typedef CGAL::SCIP_mixed_integer_program_traits<double> MIP_Solver;
13+
914
#include <CGAL/Timer.h>
1015
#include <fstream>
1116

@@ -22,8 +27,6 @@ typedef CGAL::Shape_detection::Point_to_shape_index_map<Traits> Point_to_shape_i
2227
typedef CGAL::Polygonal_surface_reconstruction<compas::Kernel> Polygonal_surface_reconstruction;
2328
typedef CGAL::Surface_mesh<compas::Point> Surface_mesh;
2429

25-
typedef CGAL::SCIP_mixed_integer_program_traits<double> MIP_Solver;
26-
2730
// Function for polygonal surface reconstruction using RANSAC
2831
std::tuple<compas::RowMatrixXd, std::vector<std::vector<int>>>
2932
polygonal_surface_reconstruction_ransac(
@@ -36,7 +39,8 @@ polygonal_surface_reconstruction_ransac(
3639

3740
for (int i = 0; i < p; i++)
3841
{
39-
points.push_back(boost::tuple<compas::Point, compas::Vector, int>(compas::Point(P.row(i)[0], P.row(i)[1], P.row(i)[2]), compas::Vector(N.row(i)[0], N.row(i)[1], N.row(i)[2]), -1));
42+
points.push_back(boost::tuple<compas::Point, compas::Vector, int>(compas::Point(P.row(i)[0], P.row(i)[1], P.row(i)[2]),
43+
compas::Vector(N.row(i)[0], N.row(i)[1], N.row(i)[2]), -1));
4044
}
4145

4246
std::cout << "Done. " << points.size() << " points loaded." << std::endl;

0 commit comments

Comments
 (0)