
    j                     8    d dl Z d Zd Zd Zedk(  r e        yy)    Nc                     ddl m}  t        j                         }|j	                  dd       |j	                  dddd	
       |j	                  ddd       |j                         }|j                  |j                          y | |j                        }t        |       |j                  |j                  |j                         |j                  rt        |      S |j                          y)a  
    A simple command line utility for accessing trimesh functions.

    To display a mesh:
      > trimesh hi.stl

    To convert a mesh:
      > trimesh hi.stl -e hey.glb

    To print some information about a mesh:
      > trimesh hi.stl --statistics
       )load	file_name?)nargsz-iz
--interact
store_truez<Get an interactive terminal with trimesh and loaded geometry)actionhelpz-ez--exportz'Export a loaded geometry to a new file.)r   N)exchange.loadr   argparseArgumentParseradd_argument
parse_argsr   
print_helpsummaryexportinteractinteractiveshow)r   parserargsscenes       =/DATA/.local/lib/python3.12/site-packages/trimesh/__main__.pymainr      s     $$$&F
3/
K	   j/XYD~~T^^$EN{{T[[!}}5!!	JJL    c                     t        |        y) N)print)geoms    r   r   r   1   s	    	$Kr   c                     t               }ddlm}  ||j                         D ci c]  \  }}|dk7  s|| c}}      j	                          yc c}}w )z
    Run an interactive session with a loaded scene and trimesh.

    This uses the standard library `code.InteractiveConsole`
    r   )InteractiveConsolelocal)localsN)r$   coder"   itemsr   )r   r#   r"   kvs        r   r   r   6   sG     HE' N1gq!tNOXXZNs
   A
A
__main__)r   r   r   r   __name__ r   r   <module>r,      s-    *Z
[ zF r   