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

Function get_opposite_vertex

tools/CGAL/SelfIntersection.cpp:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 size_t get_opposite_vertex(const Vector3I& f, const Vector2I& e) {
55 if (f[0] != e[0] && f[0] != e[1]) return f[0];
56 if (f[1] != e[0] && f[1] != e[1]) return f[1];
57 if (f[2] != e[0] && f[2] != e[1]) return f[2];
58 throw RuntimeError("Face must be topologically degnerated!");
59 }
60
61 std::vector<Box> get_triangle_bboxes(
62 const SelfIntersection::Points& pts, const MatrixIr& faces) {

Callers 2

is_delaunayMethod · 0.85

Calls 1

RuntimeErrorClass · 0.85

Tested by

no test coverage detected