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

Function has_same_orientation

tools/MeshUtils/EdgeSplitter.cpp:47–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 bool has_same_orientation(const Eigen::Ref<VectorI>& f,
48 size_t v0, size_t v1, size_t v2) {
49 if (f[0] == v0) {
50 if (f[1] == v1 && f[2] == v2) return true;
51 else return false;
52 } else if (f[0] == v1) {
53 if (f[1] == v2 && f[2] == v0) return true;
54 else return false;
55 } else {
56 assert(f[0] == v2);
57 if (f[1] == v0 && f[2] == v1) return true;
58 else return false;
59 }
60 }
61}
62using namespace EdgeSplitterHelper;
63

Callers 1

split_edgeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected