Skip to content

Commit c6fcbf3

Browse files
authored
Add files via upload
1 parent 34e017d commit c6fcbf3

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

scan_model_viewer.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@
99
import open3d as o3d, laspy
1010
import open3d.visualization.gui as gui
1111
import open3d.visualization.rendering as rendering
12-
from scan_to_model_pipeline import scan_to_model_pipeline
12+
from scan_to_model_pipeline import *
1313

1414
isMacOS = (platform.system() == "Darwin")
1515

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+
1621
class Settings:
1722
UNLIT = "defaultUnlit"
1823
LIT = "defaultLit"
@@ -190,12 +195,12 @@ class AppWindow:
190195
MENU_OPEN = 1
191196
MENU_EXPORT = 2
192197
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
199204

200205
DEFAULT_IBL = "default"
201206

@@ -587,7 +592,7 @@ def _on_menu_open(self):
587592
dlg.add_filter(
588593
".xyz .xyzn .xyzrgb .ply .pcd .pts",
589594
"Point cloud files (.xyz, .xyzn, .xyzrgb, .ply, "
590-
".pcd, .pts)")
595+
".pcd, .pts, .las, .laz)")
591596
dlg.add_filter(".ply", "Polygon files (.ply)")
592597
dlg.add_filter(".stl", "Stereolithography files (.stl)")
593598
dlg.add_filter(".fbx", "Autodesk Filmbox files (.fbx)")
@@ -632,11 +637,6 @@ def _on_export_dialog_done(self, filename):
632637
def _on_menu_quit(self):
633638
gui.Application.instance.quit()
634639

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-
640640
def _on_menu_pcd_pipeline(self):
641641
# argparser.add_argument("--input", default="./input/belleview_group.las", required=False, help="Input file name")
642642
# 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):
645645
# argparser.add_argument("--input", default="./input/OTP_EPSG26910_5703_38_-122_ca_sunrise_memorial.las", required=False, help="Input file name")
646646
# argparser.add_argument("--output", default="./output/opt/sunrise.las", required=False, help="Output file name")
647647
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)
649649

650650
def _on_menu_convert_las_to_pcd(self):
651651
convert_las_to_pcd('./output/belleview/*.las')

scan_to_model_pipeline.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,8 @@ def scan_to_model_process(args):
568568
'cluster': make_clusters,
569569
'footprint': make_footprints,
570570
'LoD': make_lod1_geometry,
571-
'sheet': make_spreadsheet
571+
'sheet': make_spreadsheet,
572+
'section': filtering_section
572573
}
573574

574575
outputs_result = []
@@ -614,6 +615,7 @@ def scan_to_model_process(args):
614615

615616
except Exception as e:
616617
print(traceback.format_exc())
618+
pass
617619

618620
return outputs_result
619621

0 commit comments

Comments
 (0)