Skip to content

Commit ceb8a41

Browse files
committed
Merge branch 'distance_calculation_visualisation' of https://github.com/diffCheckOrg/diffCheck into distance_calculation_visualisation
2 parents bb5f9c8 + 462fea0 commit ceb8a41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gh/diffCheck/diffCheck/df_error_estimation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ def cloud_2_mesh_distance(source, target):
4040

4141

4242
def point_2_mesh_distance(mesh, point):
43-
"""
43+
"""
4444
Calculate the closest distance between a point and a mesh
4545
"""
46-
pass
4746
# make a kdtree of the vertices to get the relevant vertices indexes
4847
pcd = o3d.geometry.PointCloud()
4948
pcd.points = mesh.vertices
@@ -80,8 +79,9 @@ def face_in_box(face):
8079
# query a kd tree for all the faces that intersect this box
8180

8281
# compute the closest point for the faces that we get back
83-
84-
82+
pass
83+
84+
8585
def point_2_face_distance(face, point):
8686
"""
8787
Calculate the closest distance between a point and a face

0 commit comments

Comments
 (0)