Skip to content

Commit 0805cb4

Browse files
UPDATE: CAD_segmentator code.py updated following changes to c++ side
1 parent e3d2f97 commit 0805cb4

File tree

1 file changed

+3
-12
lines changed
  • src/gh/components/DF_CAD_segmentator

1 file changed

+3
-12
lines changed

src/gh/components/DF_CAD_segmentator/code.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,17 @@ def RunScript(self,
5757
angle_threshold=i_angle_threshold,
5858
association_threshold=i_association_threshold
5959
)
60+
df_clusters.append(df_asssociated_cluster)
6061

61-
# TODO: get rid, this is for debugging
62-
# nbr_total_df_clouds_pts = 0
63-
# for df_cloud in df_clouds:
64-
# nbr_total_df_clouds_pts += df_cloud.get_num_points()
65-
# print("Total number of points in all clouds: ", nbr_total_df_clouds_pts)
66-
67-
# FIXME: this is returing empty clusters
68-
# print(df_asssociated_cluster.has_points())
69-
if df_asssociated_cluster.has_points():
70-
df_clusters.append(df_asssociated_cluster)
71-
72-
# FIXME: the refiner is crashing the script
7362
dfb_segmentation.DFSegmentation.clean_unassociated_clusters(
7463
unassociated_clusters=df_clouds,
7564
associated_clusters=df_clusters,
7665
reference_mesh=df_beams_meshes,
7766
angle_threshold=i_angle_threshold,
7867
association_threshold=i_association_threshold
7968
)
69+
70+
8071

8172
o_clusters = [df_cvt_bindings.cvt_dfcloud_2_rhcloud(cluster) for cluster in df_clusters]
8273

0 commit comments

Comments
 (0)