Skip to content

Commit 1bd5727

Browse files
authored
FIX metadata for DF_cloud_normal_estimator and set default value (#119)
1 parent 03df9c6 commit 1bd5727

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/gh/components/DF_cloud_normal_estimator/code.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def RunScript(self,
1818
if i_knn is None:
1919
i_knn = 100
2020

21+
if i_switch_mode is None:
22+
i_switch_mode = False
23+
2124
df_cloud.estimate_normals(
2225
use_cilantro_evaluator=i_switch_mode,
2326
knn=i_knn,

src/gh/components/DF_cloud_normal_estimator/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"typeHintID": "int"
5151
},
5252
{
53-
"name": "i_bool",
54-
"nickname": "i_bool",
53+
"name": "i_switch_mode",
54+
"nickname": "i_switch_mode",
5555
"description": "Switch between Open3d (true) or Cilantro (false) library. Default is Open3d.",
5656
"optional": true,
5757
"allowTreeAccess": true,

0 commit comments

Comments
 (0)