-
Hi people, I have this example that works fine for me on Linux, but it seems to have failed on a Windows machine at a school lab. It doesn't show any error but It doesn't show any image. 😭 import shapely
import py5
import trimesh
def setup():
global mesh, shp
py5.size(600, 600, py5.P3D)
p = shapely.Polygon([(100, 100), (0, 100), (100, 0)])
# print(p)
# print(p.centroid)
# print(p.svg())
p_and_hole = p.buffer(50) - p
mesh = trimesh.creation.extrude_polygon(p_and_hole, 100)
shp = py5.convert_shape(mesh)
def draw():
py5.background(100)
py5.translate(py5.width / 2, py5.height / 2)
py5.rotate_y(py5.mouse_x / 10)
py5.scale(1, -1)
#shp.disable_style()
#shp.set_fill(255)
#py5.fill(255, 0, 200)
py5.shape_mode(py5.CENTER)
py5.shape(shp, 0, 0)
py5.run_sketch() Can anyone check for me on Windows? It was an older version o py5 from the Thonny portable with py5, we might need to check on the latest version... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
I would double check the trimesh versions and the versions of every library trimesh depends on. Differences there might be causing this problem. |
Beta Was this translation helpful? Give feedback.
-
Today I uploaded a new version of my Windows Thonny "portable" with updated versions of py5, shapely and trimesh pre-installed: I'll close this as solved for now, as it seems to work fine with the updated libraries, but I would appreciate any accounts of any other issues with it. |
Beta Was this translation helpful? Give feedback.
-
I might want to update my portable to update jpype to 1.5.1 :) |
Beta Was this translation helpful? Give feedback.
Today I uploaded a new version of my Windows Thonny "portable" with updated versions of py5, shapely and trimesh pre-installed:
I'll close this as solved for now, as it seems to work fine with the updated libraries, but I would appreciate any accounts of any other issues with it.