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

Function TEST_F

tests/tools/MeshUtils/TriangleMetricTest.h:11–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9};
10
11TEST_F(TriangleMetricTest, corner_touch_corner) {
12 MatrixFr tri1(3, 3);
13 tri1 << 0.0, 0.0, 0.0,
14 1.0, 0.0, 0.0,
15 0.0, 1.0, 0.0;
16 MatrixFr tri2(3, 3);
17 tri2 << 0.0, 0.0, 0.0,
18 -1.0, 0.0, 0.0,
19 0.0,-1.0, 0.0;
20
21 TriangleMetric metric;
22 metric.update(tri1, tri2);
23 Float dist = metric.getDistance();
24 ASSERT_FLOAT_EQ(0.0, dist);
25}
26
27TEST_F(TriangleMetricTest, corner_touch_edge) {
28 MatrixFr tri1(3, 3);

Callers

nothing calls this directly

Calls 3

getDistanceMethod · 0.80
setUseLinCannyMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected