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

Function TEST_F

tests/tools/Wires/Inflator/GeometryCorrectionTableTest.h:13–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11};
12
13TEST_F(GeometryCorrectionTableTest, extrapolate) {
14 std::string correction_file = m_data_dir + "geometry.csv";
15 GeometryCorrectionTable table(correction_file);
16 MatrixFr loop(4, 3);
17 loop << -0.1, -0.1, -0.1,
18 0.1, -0.1, -0.1,
19 0.1, 0.1, -0.1,
20 -0.1, 0.1, -0.1;
21 MatrixFr ori_loop = loop;
22 Vector3F edge_dir(0, 0, 1);
23
24 table.apply_correction(edge_dir, loop);
25 ASSERT_NEAR(0.0, (loop - ori_loop).norm(), 1e-6);
26}
27
28TEST_F(GeometryCorrectionTableTest, DISABLED_extrapolate1) {
29 std::string correction_file = m_data_dir + "geometry.csv";

Callers

nothing calls this directly

Calls 2

apply_correctionMethod · 0.80
normMethod · 0.80

Tested by

no test coverage detected