patcher PCL pour réparer CropHull
makepgk -ei
pour repartir des sources en place
--- crop_hull.hpp 2017-05-13 01:11:15.946158245 -0400
+++ crop_hull.hpp-ok 2017-05-12 15:25:50.943385658 -0400
@@ -199,10 +199,13 @@
crossings[ray] += rayTriangleIntersect
(input_->points[(*indices_)[index]], rays[ray], hull_polygons_[poly], *hull_cloud_);
- if (crop_outside_ && (crossings[0]&1) + (crossings[1]&1) + (crossings[2]&1) > 1)
- output.push_back (input_->points[(*indices_)[index]]);
- else if (!crop_outside_)
+ if ((crossings[0]&1) + (crossings[1]&1) + (crossings[2]&1) > 1) {
+ if (crop_outside_) {
+ output.push_back (input_->points[(*indices_)[index]]);
+ }
+ } else if (!crop_outside_) {
output.push_back (input_->points[(*indices_)[index]]);
+ }
}
}