Skip to content

Commit c49b2dc

Browse files
Merge branch 'feature/improve_CAD_segmentation' of https://github.com/diffCheckOrg/diffCheck into feature/improve_CAD_segmentation
2 parents 289af44 + e5115ba commit c49b2dc

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/gh/components/DF_CAD_segmentator/code.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ def RunScript(self,
3737
i_radius_normal_estimation = 0.01
3838
if i_make_registration is None:
3939
i_make_registration = True
40+
if i_max_correspondence_distance_icp is None:
41+
i_max_correspondence_distance_icp = 0.1
42+
if i_maximum_face_segment_distance is None:
43+
i_maximum_face_segment_distance = 0.1
44+
4045
o_face_clusters = []
4146
transforms = []
4247
df_clusters = []

src/gh/components/DF_CAD_segmentator/metadata.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@
6161
"sourceCount": 0,
6262
"typeHintID": "float"
6363
},
64+
{
65+
"name": "i_maximum_face_segment_distance",
66+
"nickname": "i_maximum_face_segment_distance",
67+
"description": "The maximum correspondence distance for the segmentation. Default is 0.1",
68+
"optional": false,
69+
"allowTreeAccess": true,
70+
"showTypeHints": true,
71+
"scriptParamAccess": "item",
72+
"wireDisplay": "default",
73+
"sourceCount": 0,
74+
"typeHintID": "float"
75+
},
6476
{
6577
"name": "i_radius_normal_estimation",
6678
"nickname": "i_radius_normal_estimation",

0 commit comments

Comments
 (0)