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

Method is_outside

tools/Wires/Misc/BoxChecker.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33bool BoxChecker::is_outside(const VectorF& p) const {
34 bool r = false;
35 for (size_t i=0; i<m_dim; i++) {
36 r = r || (p[i] <= m_bbox_min[0] - m_tol);
37 r = r || (p[i] >= m_bbox_max[0] + m_tol);
38 }
39 return r;
40}
41
42bool BoxChecker::is_on_boundary(const VectorF& p) const {
43 return (!is_inside(p)) && (!is_outside(p));

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64