Skip to content

Commit

Permalink
UPDATE: CAD_segmentator code.py updated following changes to c++ side
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienGilliard committed Jul 18, 2024
1 parent e3d2f97 commit 0805cb4
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/gh/components/DF_CAD_segmentator/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,26 +57,17 @@ def RunScript(self,
angle_threshold=i_angle_threshold,
association_threshold=i_association_threshold
)
df_clusters.append(df_asssociated_cluster)

# TODO: get rid, this is for debugging
# nbr_total_df_clouds_pts = 0
# for df_cloud in df_clouds:
# nbr_total_df_clouds_pts += df_cloud.get_num_points()
# print("Total number of points in all clouds: ", nbr_total_df_clouds_pts)

# FIXME: this is returing empty clusters
# print(df_asssociated_cluster.has_points())
if df_asssociated_cluster.has_points():
df_clusters.append(df_asssociated_cluster)

# FIXME: the refiner is crashing the script
dfb_segmentation.DFSegmentation.clean_unassociated_clusters(
unassociated_clusters=df_clouds,
associated_clusters=df_clusters,
reference_mesh=df_beams_meshes,
angle_threshold=i_angle_threshold,
association_threshold=i_association_threshold
)



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

Expand Down

0 comments on commit 0805cb4

Please sign in to comment.