File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
DF_cloud_to_cloud_distance
DF_cloud_to_mesh_distance Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 2020class 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
5453if __name__ == "__main__" :
Original file line number Diff line number Diff 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+ # )
You can’t perform that action at this time.
0 commit comments