Update app.py
Browse files
app.py
CHANGED
@@ -48,6 +48,7 @@ def sample_info(sample_id_str, fieldn):
|
|
48 |
|
49 |
|
50 |
quads = plaid_sample.get_elements()['QUAD_4']
|
|
|
51 |
|
52 |
# generate colormap
|
53 |
if np.linalg.norm(field) > 0:
|
@@ -69,7 +70,7 @@ def sample_info(sample_id_str, fieldn):
|
|
69 |
|
70 |
# compose scene
|
71 |
scene = pyrender.Scene(ambient_light=[.1, .1, .3], bg_color=[0, 0, 0])
|
72 |
-
camera = pyrender.PerspectiveCamera( yfov=np.pi /
|
73 |
light = pyrender.DirectionalLight(color=[1,1,1], intensity=1000.)
|
74 |
|
75 |
scene.add(mesh, pose= np.eye(4))
|
|
|
48 |
|
49 |
|
50 |
quads = plaid_sample.get_elements()['QUAD_4']
|
51 |
+
print("quads.shape =", quads.shape)
|
52 |
|
53 |
# generate colormap
|
54 |
if np.linalg.norm(field) > 0:
|
|
|
70 |
|
71 |
# compose scene
|
72 |
scene = pyrender.Scene(ambient_light=[.1, .1, .3], bg_color=[0, 0, 0])
|
73 |
+
camera = pyrender.PerspectiveCamera( yfov=np.pi / 6.0)
|
74 |
light = pyrender.DirectionalLight(color=[1,1,1], intensity=1000.)
|
75 |
|
76 |
scene.add(mesh, pose= np.eye(4))
|