Function lanelet::geometry::internal::joinSubStrings

Function Documentation

inline BasicLineString2d lanelet::geometry::internal::joinSubStrings(const std::vector<BasicLineString2d> &convexSubStrings, const IndexedSegmentTree &tree, const SegmentMap &segMap)

joinSubStrings create one line string of several ones by walking along them and joining them at the first intersection

Parameters:
  • convexSubStrings – list of substrings. Walk will start at the first element and continue until the list is exhausted

  • tree – search tree

  • segMap – mapping from segment index of uncut linestring to linestring and segment index of substring

Returns:

joined line string