Skip to content

Commit 1baf875

Browse files
fix: small typos again in the metadata
1 parent 164ef82 commit 1baf875

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

src/gh/components/DF_cloud_difference/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"typeHintID": "pointcloud"
2727
},
2828
{
29-
"name": "i_cloud_subtract_with",
30-
"nickname": "i_cloud_subtract_with",
29+
"name": "i_cloud_B",
30+
"nickname": "i_cloud_B",
3131
"description": "The point cloud to subtract with.",
3232
"optional": false,
3333
"allowTreeAccess": true,

src/gh/components/DF_cloud_intersect/code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ class DFCloudIntersect(component):
99
def __init__(self):
1010
super(DFCloudIntersect, self).__init__()
1111
def RunScript(self,
12-
i_cloud_intersect_from: Rhino.Geometry.PointCloud,
13-
i_cloud_intersect_with: Rhino.Geometry.PointCloud,
12+
i_cloud_A: Rhino.Geometry.PointCloud,
13+
i_cloud_B: Rhino.Geometry.PointCloud,
1414
i_distance_threshold: float):
15-
df_cloud = df_cvt.cvt_rhcloud_2_dfcloud(i_cloud_intersect_from)
16-
df_cloud_intersect = df_cvt.cvt_rhcloud_2_dfcloud(i_cloud_intersect_with)
15+
df_cloud = df_cvt.cvt_rhcloud_2_dfcloud(i_cloud_A)
16+
df_cloud_intersect = df_cvt.cvt_rhcloud_2_dfcloud(i_cloud_B)
1717
if i_distance_threshold is None:
1818
ghenv.Component.AddRuntimeMessage(RML.Warning, "Distance threshold not defined. 0.01 used as default value.")# noqa: F821
1919
i_distance_threshold = 0.01

src/gh/components/DF_crop_cloud/metadata.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,27 @@
2828
{
2929
"name": "i_box",
3030
"nickname": "i_box",
31-
"description": "The brep box to crop the point cloud with.",
32-
"optional": false,
31+
"description": "The brep box to crop the point cloud with. Can only be a box.",
32+
"optional": true,
3333
"allowTreeAccess": true,
3434
"showTypeHints": true,
3535
"scriptParamAccess": "item",
3636
"wireDisplay": "default",
3737
"sourceCount": 0,
3838
"typeHintID": "brep"
39+
},
40+
{
41+
"name": "i_brep",
42+
"nickname": "i_brep",
43+
"description": "The brep to crop the point cloud with. This is slower than the box, but accommodates any Brep.",
44+
"optional": true,
45+
"allowTreeAccess": true,
46+
"showTypeHints": true,
47+
"scriptParamAccess": "item",
48+
"wireDisplay": "default",
49+
"sourceCount": 0,
50+
"typeHintID": "brep",
51+
"flatten": false
3952
}
4053
],
4154
"outputParameters": [

0 commit comments

Comments
 (0)