MCPcopy Create free account
hub / github.com/RenderKit/embree / test_location

Function test_location

tutorials/common/scenegraph/scenegraph.cpp:810–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808 }
809
810 bool test_location(const std::vector<avector<Vec3ff>>& in, ssize_t ipos, std::vector<avector<Vec3ff>>& out, ssize_t opos)
811 {
812 if (opos < 0)
813 return false;
814
815 for (ssize_t i=ipos, j=opos; i<ipos+4 && j<(ssize_t)out[0].size(); i++, j++) {
816 for (size_t k=0; k<in.size(); k++) {
817 if (any(abs((vfloat4)in[k][i].m128-(vfloat4)out[k][j].m128) > 0.01f*(vfloat4)max(abs(in[k][i]),abs(out[k][j])).m128))
818 return false;
819 }
820 }
821 return true;
822 }
823
824 void SceneGraph::HairSetNode::compact_vertices()
825 {

Callers 1

compact_verticesMethod · 0.85

Calls 4

anyFunction · 0.50
absFunction · 0.50
maxFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected