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

Function TEST_F

tests/tools/IGL/DiskCutter.h:12–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10};
11
12TEST_F(DiskCutterTest, no_cut) {
13 MeshPtr mesh = load_mesh("cube.obj");
14
15 MatrixFr vertices = extract_vertices(mesh);
16 MatrixIr faces = extract_faces(mesh);
17
18 DiskCutter cutter(vertices, faces);
19 cutter.run();
20
21 MatrixFr out_vertices = cutter.get_vertices();
22 MatrixIr out_faces = cutter.get_faces();
23
24 ASSERT_EQ(vertices.rows(), out_vertices.rows());
25 ASSERT_EQ(vertices.cols(), out_vertices.cols());
26 ASSERT_EQ(faces.rows(), out_faces.rows());
27 ASSERT_EQ(faces.cols(), out_faces.cols());
28}
29
30TEST_F(DiskCutterTest, nested_square) {
31 MatrixFr vertices(8, 2);

Callers

nothing calls this directly

Calls 6

load_meshFunction · 0.85
extract_verticesFunction · 0.85
extract_facesFunction · 0.85
runMethod · 0.45
get_verticesMethod · 0.45
get_facesMethod · 0.45

Tested by

no test coverage detected