| 249 | } |
| 250 | |
| 251 | bool WireNetwork::is_printable(const std::string& print_dir) { |
| 252 | if (!with_connectivity()) { compute_connectivity(); } |
| 253 | |
| 254 | std::string attr_name = std::string("vertex_support_") + print_dir; |
| 255 | if (has_attribute(attr_name)) { |
| 256 | m_attributes.remove_attribute(attr_name); |
| 257 | } |
| 258 | add_attribute(attr_name); |
| 259 | const MatrixFr& vertex_supported = get_attribute(attr_name); |
| 260 | return (vertex_supported.array() > 0.5).all(); |
| 261 | } |
| 262 |