Skip to content

Commit 17d4982

Browse files
committed
WIP-FIX troubleshooting
1 parent d8d2dc9 commit 17d4982

File tree

2 files changed

+9
-10
lines changed
  • src/gh/components

2 files changed

+9
-10
lines changed

src/gh/components/DF_cloud_to_cloud_distance/code.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
class CloudToCloudDistance(component):
2121
def RunScript(self,
2222
i_cloud_source: rg.PointCloud,
23-
i_cloud_target: rg.PointCloud,
24-
25-
)
23+
i_cloud_target: rg.PointCloud):
2624
"""
2725
The cloud-to-cloud component computes the distance between each point in the source point cloud and its nearest neighbour in thr target point cloud.
2826
@@ -34,6 +32,7 @@ def RunScript(self,
3432
:return o_max_deviation: the max deviation between source and target (Hausdorff Distance)
3533
:return o_min_deviation: the min deviation between source and target
3634
"""
35+
print ("yes")
3736
if i_cloud_source is None or i_cloud_target is None:
3837
ghenv.Component.AddRuntimeMessage(RML.Warning, "Please provide both objects of type point clouds to compare")
3938
return None
@@ -48,7 +47,7 @@ def RunScript(self,
4847
o_max_deviation = df_error_estimation.compute_max_deviation(df_cloud_source, df_cloud_target)
4948
o_min_deviation = df_error_estimation.compute_min_deviation(df_cloud_source, df_cloud_target)
5049

51-
return o_distances, o_mse, o_max_deviation, o_min_deviation
50+
return o_distances
5251

5352

5453
if __name__ == "__main__":

src/gh/components/DF_cloud_to_mesh_distance/code.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def RunScript(self,
4343
return o_distances
4444

4545

46-
if __name__ == "__main__":
47-
com = CloudToCloudDistance(component)
48-
o_distances = com.RunScript(
49-
i_cloud_source,
50-
i_cloud_target
51-
)
46+
# if __name__ == "__main__":
47+
# com = CloudToCloudDistance(component)
48+
# o_distances = com.RunScript(
49+
# i_cloud_source,
50+
# i_cloud_target
51+
# )

0 commit comments

Comments
 (0)