| 28 | } |
| 29 | |
| 30 | void SplitEdge(Edge const & ab, geometry::PointWithAltitude const & p, vector<Edge> & edges) |
| 31 | { |
| 32 | auto const & a = ab.GetStartJunction(); |
| 33 | auto const & b = ab.GetEndJunction(); |
| 34 | |
| 35 | // No need to split the edge by its endpoints. |
| 36 | if (a.GetPoint() == p.GetPoint() || b.GetPoint() == p.GetPoint()) |
| 37 | return; |
| 38 | |
| 39 | edges.push_back(Edge::MakeFake(a, p, ab)); |
| 40 | edges.push_back(Edge::MakeFake(p, b, ab)); |
| 41 | } |
| 42 | } // namespace |
| 43 | |
| 44 | // Edge ------------------------------------------------------------------------ |
no test coverage detected