Skip to content

Commit

Permalink
Ran clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
marip8 committed Sep 15, 2023
1 parent 0f2fdd1 commit 49340d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion noether_filtering/src/mesh/euclidean_clustering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ bool EuclideanClustering::filter(const pcl::PolygonMesh& mesh_in, pcl::PolygonMe
}
}

auto is_valid_polygon = [& points = *mesh_points](const Vertices& polygon, double tol = 1e-6) -> bool {
auto is_valid_polygon = [&points = *mesh_points](const Vertices& polygon, double tol = 1e-6) -> bool {
Eigen::Vector3f a, b, c, dir;
const decltype(polygon.vertices)& vert = polygon.vertices;
a = points[vert[0]].getVector3fMap();
Expand Down
12 changes: 4 additions & 8 deletions tool_path_planner/src/surface_walk_raster_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1471,8 +1471,7 @@ void SurfaceWalkRasterGenerator::getConnectedIntersectionLine(vtkSmartPointer<vt
// points to
switch (order)
{
case 1:
{
case 1: {
vtkSmartPointer<vtkPoints> tmp = vtkSmartPointer<vtkPoints>::New();

for (long i = lines[next_index]->GetNumberOfPoints() - 1; i >= 0; --i)
Expand All @@ -1491,16 +1490,14 @@ void SurfaceWalkRasterGenerator::getConnectedIntersectionLine(vtkSmartPointer<vt
temp_points->DeepCopy(tmp);
break;
}
case 2:
{
case 2: {
for (int i = 0; i < lines[next_index]->GetNumberOfPoints(); ++i)
{
temp_points->InsertNextPoint(lines[next_index]->GetPoint(i));
}
break;
}
case 3:
{
case 3: {
vtkSmartPointer<vtkPoints> tmp = vtkSmartPointer<vtkPoints>::New();

for (int i = 0; i < lines[next_index]->GetNumberOfPoints(); ++i)
Expand All @@ -1519,8 +1516,7 @@ void SurfaceWalkRasterGenerator::getConnectedIntersectionLine(vtkSmartPointer<vt
temp_points->DeepCopy(tmp);
break;
}
case 4:
{
case 4: {
for (long i = lines[next_index]->GetNumberOfPoints() - 1; i >= 0; --i)
{
temp_points->InsertNextPoint(lines[next_index]->GetPoint(i));
Expand Down

0 comments on commit 49340d2

Please sign in to comment.