You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This release adds to py5's integration with trimesh and matplotlib.
Previously every triangle in a trimesh mesh would have the edge lines drawn, much like how Processing renders 3D meshes. Now, when converting a Trimesh object to a Py5Shape object, the default will be to only draw the facet edges of the mesh. This results in a much cleaner look for 3D models that are intended to be rendered as wireframes. See the Trimesh integration documentation for details.
The new matplotlib feature is a new supported object type for conversion to Py5Shape objects: TextPath. This allows you to leverage matplotlib's text rendering capabilities, including support for equations and LaTeX typography. See the matplotlib integration documentation for more information.
Version Updates
This py5 release includes the core jars from the latest Processing release, 4.4.10.
Bug Fixes and Small Improvements
There were also some bug fixes in this release:
#711 - The 2X scaling problem for the %%py5draw Jupyter magic on OSX has been fixed
The println() method now has a flush parameter that works like the flush parameter in Python's built-in print() function. When set to True, the output buffer is flushed immediately. This is useful when your print stream is writing to a file (enable this with the set_print_stream() method).
Users with Java 24 or 25 installed experience a weird warning message about enabling native access. Processing has the same issue - this is because of JVM changes in Java 24. This version of py5 enables native access so the warning message won't appear anymore. In addition, the JavaFX renderer needed an additional fix to avoid a similar warning message. However, note that right now py5 plus JavaFX seems to have some other strange and fatal problem on my Linux machine when using Java 25. If use JavaFX and Java 25, please let me know either way if it works for you.
There were also some small improvements to the documentation, particularly the documentation about color
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
New Features
This release adds to py5's integration with trimesh and matplotlib.
Previously every triangle in a trimesh mesh would have the edge lines drawn, much like how Processing renders 3D meshes. Now, when converting a Trimesh object to a Py5Shape object, the default will be to only draw the facet edges of the mesh. This results in a much cleaner look for 3D models that are intended to be rendered as wireframes. See the Trimesh integration documentation for details.
The new matplotlib feature is a new supported object type for conversion to Py5Shape objects: TextPath. This allows you to leverage matplotlib's text rendering capabilities, including support for equations and LaTeX typography. See the matplotlib integration documentation for more information.
Version Updates
This py5 release includes the core jars from the latest Processing release, 4.4.10.
Bug Fixes and Small Improvements
There were also some bug fixes in this release:
%%py5drawJupyter magic on OSX has been fixedflushparameter that works like theflushparameter in Python's built-inprint()function. When set toTrue, the output buffer is flushed immediately. This is useful when your print stream is writing to a file (enable this with the set_print_stream() method).This discussion was created from the release New Integration features for trimesh and matplotlib.
Beta Was this translation helpful? Give feedback.
All reactions