Skip to content

Commit 106187f

Browse files
committed
WIP FIX output back to rhino object
1 parent 09da580 commit 106187f

File tree

2 files changed

+37
-24
lines changed

2 files changed

+37
-24
lines changed

src/gh/components/DF_vizualization/code.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ def RunScript(self,
2828
sth sth
2929
"""
3030

31-
i_viz_settings = []
32-
3331
if i_results.source is None or i_results.target is None:
3432
ghenv.Component.AddRuntimeMessage(RML.Warning, "Please provide both objects of type point clouds to compare")
3533
return None
3634

3735
if i_target_flag == False:
38-
o_target = i_results.target
36+
#if user doesn't want to vizualize results on the target return the original geo
37+
#now only implemented for PCD
38+
o_target = df_cvt_bindings.cvt_dfcloud_2_rhcloud(i_results.target)
3939
o_target_legend = []
4040
else:
4141
#color the target pointcloud based on viz_settings
@@ -45,15 +45,16 @@ def RunScript(self,
4545
pass
4646

4747
if i_source_flag == False:
48-
o_source = i_results.source
48+
#if user doesn't want to vizualize results on the target return the original geo
49+
#now only implemented for PCD
50+
o_source = df_cvt_bindings.cvt_dfcloud_2_rhcloud(i_results.source)
4951
o_source_legend = []
5052
else:
5153
#color the source pointcloud based on viz_settings
52-
pass
53-
54-
#df_cloud_source = df_cvt_bindings.cvt_rhcloud_2_dfcloud(i_cloud_source)
55-
#df_cloud_target = df_cvt_bindings.cvt_rhcloud_2_dfcloud(i_cloud_target)
5654

55+
#make a legend
56+
57+
pass
5758

5859
return o_source, o_target, o_source_legend, o_target_legend
5960

0 commit comments

Comments
 (0)