Updated glb_bounds.py

*Changed optional params of glb_bounds.py to use dashes instead of underscores in optional params
*Added missing glb_bounds.py header
This commit is contained in:
izawartka 2025-08-02 00:34:34 +02:00
parent 2fb7f8e698
commit 82c3c7cfbb

View File

@ -5,6 +5,12 @@ import logging
from tqdm import tqdm from tqdm import tqdm
import trimesh import trimesh
#
# [ GLB BOUNDS EXTRACTOR ]
# by masuo
# v1.1
#
def parse_args(): def parse_args():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description="Extract bounding boxes from GLB mesh files and output JSON summary." description="Extract bounding boxes from GLB mesh files and output JSON summary."
@ -18,13 +24,13 @@ def parse_args():
help='Output JSON file path' help='Output JSON file path'
) )
parser.add_argument( parser.add_argument(
'--decimal_places', '-d', '--decimal-places', '-d',
type=int, type=int,
default=3, default=3,
help='Number of decimal places for output coordinates (default: 3)' help='Number of decimal places for output coordinates (default: 3)'
) )
parser.add_argument( parser.add_argument(
'--no_aliases', '-a', '--no-aliases', '-a',
action='store_false', action='store_false',
help='Disable aliases in the output JSON (default: false)' help='Disable aliases in the output JSON (default: false)'
) )