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

Function TEST_F

tests/tools/Wires/Attributes/WireVertexSupportAttributeTest.h:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8};
9
10TEST_F(WireVertexSupportTest, cube) {
11 WireNetwork network = load_wire("cube.wire");
12 network.compute_connectivity();
13
14 network.add_attribute("vertex_support_X");
15 const MatrixFr& values = network.get_attribute("vertex_support_X");
16
17 ASSERT_EQ(network.get_num_vertices(), values.rows());
18 ASSERT_FLOAT_EQ(1.0, values.minCoeff());
19}
20
21TEST_F(WireVertexSupportTest, brick5) {
22 WireNetwork network = load_wire("brick5.wire");

Callers

nothing calls this directly

Calls 8

get_attribute_typeMethod · 0.80
load_wireFunction · 0.50
compute_connectivityMethod · 0.45
add_attributeMethod · 0.45
get_attributeMethod · 0.45
get_num_verticesMethod · 0.45
computeMethod · 0.45
get_valuesMethod · 0.45

Tested by

no test coverage detected