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

Method lookup

python/pymesh/aabb_tree.py:58–60  ·  view source on GitHub ↗
(self, pts)

Source from the content-addressed store, hash-verified

56 self.__raw_bvh.build()
57
58 def lookup(self, pts):
59 sq_dists, face_indices, closest_pts = self.__raw_bvh.lookup(pts)
60 return sq_dists.squeeze(), face_indices.squeeze(), closest_pts
61
62 def lookup_signed(self, pts, fn, vn, en, emap):
63 signed_dists, face_indices, closest_pts, face_normals = self.__raw_bvh.lookup_signed(pts, fn, vn, en, emap)

Callers 5

distance_to_meshFunction · 0.95
map_vertex_attributeFunction · 0.95
map_face_attributeFunction · 0.95
map_corner_attributeFunction · 0.95
init_BVHFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected