MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / is_printable

Method is_printable

tools/Wires/WireNetwork/WireNetwork.cpp:251–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251bool 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

Callers 1

TEST_FFunction · 0.45

Calls 2

add_attributeFunction · 0.85
remove_attributeMethod · 0.45

Tested by 1

TEST_FFunction · 0.36