trimesh and shapely objects are hasheable... so... (it allows some playful hacks) #419
villares
started this conversation in
Show and tell
Replies: 1 comment 8 replies
-
They are hashable but only Shapely 2.0 objects are immutable. Shapely <2.0 objects and Trimesh objects are not. Relying on However, I see why you are asking this. Currently the user now has a chore to convert an object once with |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
You can use the `functools.cache' decorator on functions that get them as arguments, and it might allow you to convert them only when they change, otherwise returning a cached py5.Py5Shape object.
Beta Was this translation helpful? Give feedback.
All reactions