| 14 | using namespace WireVertexSupportAttributeHelper; |
| 15 | |
| 16 | void WireVertexSupportAttribute::compute(const WireNetwork& network) { |
| 17 | if (network.get_dim() != 3) { |
| 18 | throw NotImplementedError("Vertex support is only available to 3D wires"); |
| 19 | } |
| 20 | |
| 21 | if (!network.with_connectivity()) { |
| 22 | throw RuntimeError("Vertex support attribute requires wire connectivity"); |
| 23 | } |
| 24 | |
| 25 | const size_t num_vertices = network.get_num_vertices(); |
| 26 | |
| 27 | m_values = MatrixFr::Constant(num_vertices, 1, NOT_SUPPORTED); |
| 28 | mark_directly_supported_vertices(network, m_values); |
| 29 | propagate_supports(network, m_values); |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Directly supported vertices are vertices on bbox faces that we support |
nothing calls this directly
no test coverage detected