| 25 | } |
| 26 | |
| 27 | std::optional<Link> MarkedPoint::GetLink(size_t curBorderId) const |
| 28 | { |
| 29 | if (m_links.size() != 1) |
| 30 | return std::nullopt; |
| 31 | |
| 32 | size_t anotherBorderId = m_links.begin()->m_borderId; |
| 33 | if (anotherBorderId == curBorderId) |
| 34 | return std::nullopt; |
| 35 | |
| 36 | return *m_links.begin(); |
| 37 | } |
| 38 | |
| 39 | // Polygon ----------------------------------------------------------------------------------------- |
| 40 | void Polygon::MakeFrozen(size_t a, size_t b) |
no test coverage detected