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

Method simple2

tests/tools/Triangulation/TriangulationTest.h:38–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void simple2(const std::string& engine_name) {
39 MatrixFr points(4, 2);
40 points << 0.0, 0.0,
41 0.5, 0.0,
42 1.0, 0.0,
43 0.0, 1.0;
44
45 Triangulation::Ptr t = Triangulation::create(engine_name);
46 t->set_points(points);
47 t->run();
48 MatrixFr vertices = t->get_vertices();
49 MatrixIr faces = t->get_faces();
50 assert_valid_triangulation(vertices, faces);
51 }
52
53 void simple3(const std::string& engine_name) {
54 MatrixFr points(4, 2);

Callers

nothing calls this directly

Calls 4

set_pointsMethod · 0.45
runMethod · 0.45
get_verticesMethod · 0.45
get_facesMethod · 0.45

Tested by

no test coverage detected