Skip to content

Commit

Permalink
Housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
omersahintas committed Jun 9, 2021
1 parent 9bc20ea commit 5832140
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions p3iv_utils_polyvision/src/visible_area.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <CGAL/Arr_walk_along_line_point_location.h>
#include <CGAL/Bbox_2.h>
#include <CGAL/Triangular_expansion_visibility_2.h>
#include "cgal_debug_utils..hpp"
#include "cgal_utils.hpp"
#include "internal/cgal_debug_utils.hpp"

#ifndef DEBUG
#define DEBUG 0
Expand Down Expand Up @@ -60,8 +60,8 @@ Arrangement_2 polygon_with_holes2arrangement_2(const Polygon_with_holes_2& polyw

bool VisibleArea::getVisibilityBorder(const std::vector<Point_2>& line, Point_2& intersection) const {
CGALUtils cgalUtils;
for (size_t i = 0; i < line.size() - 1; i++){
Segment_2 segment(line.at(i), line.at(i+1));
for (size_t i = 0; i < line.size() - 1; i++) {
Segment_2 segment(line.at(i), line.at(i + 1));
if (cgalUtils.segmentIntersectsPolygon(this->fieldsOfView, segment, intersection)) {
return true;
}
Expand Down Expand Up @@ -108,7 +108,7 @@ bool VisibleArea::checkInside(const Point_2& point) const {
isInside = false;
continue;
}
if (isInside){
if (isInside) {
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion p3iv_utils_polyvision/test/cgal_polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#include <CGAL/Polygon_set_2.h>
#include <CGAL/Polygon_with_holes_2.h>
#include <CGAL/intersections.h>
#include "cgal_debug_utils..hpp"
#include "cgal_utils.hpp"
#include "polyvision_cgal.hpp"
#include "gtest/gtest.h"
#include "internal/cgal_debug_utils.hpp"

using namespace polyvision;

Expand Down

0 comments on commit 5832140

Please sign in to comment.