9
9
import open3d as o3d , laspy
10
10
import open3d .visualization .gui as gui
11
11
import open3d .visualization .rendering as rendering
12
- from scan_to_model_pipeline import scan_to_model_pipeline
12
+ from scan_to_model_pipeline import *
13
13
14
14
isMacOS = (platform .system () == "Darwin" )
15
15
16
+ class args_param :
17
+ input = './input/OTP_EPSG26910_5703_38_-122_ca_sunrise_memorial.las'
18
+ output = './output/opt/sunrise.las'
19
+ pipeline = 'pipeline.json'
20
+
16
21
class Settings :
17
22
UNLIT = "defaultUnlit"
18
23
LIT = "defaultLit"
@@ -190,12 +195,12 @@ class AppWindow:
190
195
MENU_OPEN = 1
191
196
MENU_EXPORT = 2
192
197
MENU_QUIT = 3
193
- MENU_PCD_PIPELINE = 10
194
- MENU_LOAD_PCD_SEGMENT = 11
195
- MENU_CONVERT_LAS_TO_PCD = 12
196
- MENU_SHOW_SETTINGS = 20
197
- MENU_SHOW_EXTENTS = 21
198
- MENU_ABOUT = 31
198
+ MENU_PCD_PIPELINE = 20
199
+ MENU_LOAD_PCD_SEGMENT = 21
200
+ MENU_CONVERT_LAS_TO_PCD = 22
201
+ MENU_SHOW_SETTINGS = 30
202
+ MENU_SHOW_EXTENTS = 31
203
+ MENU_ABOUT = 40
199
204
200
205
DEFAULT_IBL = "default"
201
206
@@ -587,7 +592,7 @@ def _on_menu_open(self):
587
592
dlg .add_filter (
588
593
".xyz .xyzn .xyzrgb .ply .pcd .pts" ,
589
594
"Point cloud files (.xyz, .xyzn, .xyzrgb, .ply, "
590
- ".pcd, .pts)" )
595
+ ".pcd, .pts, .las, .laz )" )
591
596
dlg .add_filter (".ply" , "Polygon files (.ply)" )
592
597
dlg .add_filter (".stl" , "Stereolithography files (.stl)" )
593
598
dlg .add_filter (".fbx" , "Autodesk Filmbox files (.fbx)" )
@@ -632,11 +637,6 @@ def _on_export_dialog_done(self, filename):
632
637
def _on_menu_quit (self ):
633
638
gui .Application .instance .quit ()
634
639
635
- class args_param :
636
- input = './input/OTP_EPSG26910_5703_38_-122_ca_sunrise_memorial.las'
637
- output = './output/opt/sunrise.las'
638
- pipeline = 'pipeline.json'
639
-
640
640
def _on_menu_pcd_pipeline (self ):
641
641
# argparser.add_argument("--input", default="./input/belleview_group.las", required=False, help="Input file name")
642
642
# argparser.add_argument("--output", default="./output/belleview/belleview.las", required=False, help="Output file name")
@@ -645,7 +645,7 @@ def _on_menu_pcd_pipeline(self):
645
645
# argparser.add_argument("--input", default="./input/OTP_EPSG26910_5703_38_-122_ca_sunrise_memorial.las", required=False, help="Input file name")
646
646
# argparser.add_argument("--output", default="./output/opt/sunrise.las", required=False, help="Output file name")
647
647
args = args_param () # TBD. should be modified by user. just test.
648
- outputs_result = scan_to_model_pipeline (args )
648
+ outputs_result = scan_to_model_process (args )
649
649
650
650
def _on_menu_convert_las_to_pcd (self ):
651
651
convert_las_to_pcd ('./output/belleview/*.las' )
0 commit comments