jithenderchoudary commited on
Commit
764678f
·
verified ·
1 Parent(s): c52a4c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -4,6 +4,16 @@ from cadquery import exporters
4
  import numpy as np
5
  import pyvista as pv
6
  from pyvistaqt import BackgroundPlotter
 
 
 
 
 
 
 
 
 
 
7
 
8
  # Function to load a STEP file and display it
9
  def load_and_display_step(file):
 
4
  import numpy as np
5
  import pyvista as pv
6
  from pyvistaqt import BackgroundPlotter
7
+ import trimesh
8
+
9
+ # Load the STL file
10
+ mesh = trimesh.load('/mnt/data/Tile_3_3.stl')
11
+
12
+ # Display basic information
13
+ print(mesh)
14
+ print("Volume:", mesh.volume)
15
+ print("Surface Area:", mesh.area)
16
+
17
 
18
  # Function to load a STEP file and display it
19
  def load_and_display_step(file):