| 70 | using namespace WireVertexMinAngleAttributeHelper; |
| 71 | |
| 72 | void WireVertexMinAngleAttribute::compute(const WireNetwork& network) { |
| 73 | if (!network.with_connectivity()) { |
| 74 | throw RuntimeError("Min angle attribute requires wire connectivity."); |
| 75 | } |
| 76 | |
| 77 | const size_t dim = network.get_dim(); |
| 78 | if (dim == 2) { |
| 79 | Angle<2> angle; |
| 80 | compute_min_angles(network, m_values, angle); |
| 81 | } else if (dim == 3) { |
| 82 | Angle<3> angle; |
| 83 | compute_min_angles(network, m_values, angle); |
| 84 | } else { |
| 85 | std::stringstream err_msg; |
| 86 | err_msg << "Unsupported dim: " << dim; |
| 87 | throw NotImplementedError(err_msg.str()); |
| 88 | } |
| 89 | } |
nothing calls this directly
no test coverage detected