Skip to content

Commit 953f5f4

Browse files
feat: remove the i_stop_after_id parameter because it is moved to a dedicated component
1 parent cedfcc1 commit 953f5f4

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/gh/components/DF_CAD_segmentator/code.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ def RunScript(self,
3939
df_beams_meshes = []
4040
rh_beams_meshes = []
4141

42-
stop_after_id = i_stop_after_id if i_stop_after_id is not None else len(df_beams)
43-
44-
for df_b in df_beams[:stop_after_id]:
42+
for df_b in df_beams:
4543
rh_b_mesh_faces = [df_b_f.to_mesh() for df_b_f in df_b.side_faces]
4644
df_b_mesh_faces = [df_cvt_bindings.cvt_rhmesh_2_dfmesh(rh_b_mesh_face) for rh_b_mesh_face in rh_b_mesh_faces]
4745
df_beams_meshes.append(df_b_mesh_faces)

src/gh/components/DF_CAD_segmentator/metadata.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,6 @@
6060
"wireDisplay": "default",
6161
"sourceCount": 0,
6262
"typeHintID": "float"
63-
},
64-
{
65-
"name": "i_stop_after_id",
66-
"nickname": "i_stop_after_id",
67-
"description": "The ID of the beam to stop processing after. This is intended for evaluating an assembly before its construction is completed.",
68-
"optional": true,
69-
"allowTreeAccess": true,
70-
"showTypeHints": true,
71-
"scriptParamAccess": "item",
72-
"wireDisplay": "default",
73-
"sourceCount": 0,
74-
"typeHintID": "int"
7563
}
7664
],
7765
"outputParameters": [

0 commit comments

Comments
 (0)