Skip to content

Commit

Permalink
Merge branch 'francocipollone/poc_line_string_kd_tree' into francocip…
Browse files Browse the repository at this point in the history
…ollone/use_closest_point_for_2d_projection_case
  • Loading branch information
francocipollone committed Feb 13, 2023
2 parents 312aa01 + aa641a5 commit e1afdd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geometry/utility/geometry.cc
Expand Up @@ -391,8 +391,8 @@ ClosestPointResult3d GetClosestPoint(const LineString3d& line_string, const mali
LineString3d::Segment::Interval{line_string_points.at(nearest_idx - 1).p().value(),
nearest_point.p().value()}}
: LineString3d::Segment{nearest_idx, nearest_idx + 1,
LineString3d::Segment::Interval{line_string_points.at(nearest_idx).p().value(),
nearest_point.p().value()}};
LineString3d::Segment::Interval{
nearest_point.p().value(), line_string_points.at(nearest_idx + 1).p().value()}};
}
return {segment_closest_point_result.p + closest_segment->p_interval.min, segment_closest_point_result.point,
segment_closest_point_result.distance, closest_segment.value()};
Expand Down

0 comments on commit e1afdd3

Please sign in to comment.