Update dependency trimesh to v4.12.2 - #72
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.8.3→4.12.2Release Notes
mikedh/trimesh (trimesh)
v4.12.2Compare Source
What's Changed
Full Changelog: mikedh/trimesh@4.12.1...4.12.2
v4.12.1Compare Source
What's Changed
Full Changelog: mikedh/trimesh@4.12.0...4.12.1
v4.12.0Compare Source
What's Changed
_get_colorsby @strophy in #2526New Contributors
Full Changelog: mikedh/trimesh@4.11.5...4.12.0
v4.11.5Compare Source
Release: Fix fill_holes with face attributes (#2518)
Trimesh.fill_holeswas adding new faces but haphazardly managing thebookkeeping: it broke
len(mesh.faces) == len(mesh.face_attributes[n])if there were any holes filled.
Trimesh.extend_faceswhich moves the bookkeeping of "preservecached face normals to avoid recalculating, pad face colors, pad face
attributes" to a generic mesh attribute in the same vein as
mesh.update_faces.repair.fill_holesto usetriangulate_quadswhich implemented the hole filling logic but better.Switch the winding search to a numpy indexing trick for new faces.
geometry.triangulate_quadsuse the preexistingutil.triangle_fan_to_faceswhich uses numpy instead of a listcomprehension and is heavily used and tested in the codebase.
Also:
v4.11.4Compare Source
Release: Simple endian tests (#2512)
Even if we can't fully support other endian platforms, imports and
exports should explicitly set endian-ness of outputs.
make test-archwhich runs a subset of test on qemu/docker tocatch simple problems on little-endian and 32bit platforms
Line.closedsetter toauto-close polylines when passed.
np.einsum/np.dotfrom good discussion in #2514. Myconclusion was that
numpy.dotis probably not the culprit and too coreto avoid. As part of looking into this I benchmarked our other uses of
np.einsumagainst simple numpy operations, it was on average ~2xslower. I also tried the `np.einsum(... optimize=True) as discussed in
this interesting
post
but for the trimesh use cases of very simple expressions this was
substantially slower in every case I measured.
v4.11.3Compare Source
Release: Fix For Open Paths (#2507)
whileloop to boundedforloop in the traversals logicv4.11.2Compare Source
Hotfix for new ruff release (#2503)
Fix for new ruff rule in 0.15.0 blocking release.
v4.11.1Compare Source
Release: Fix WebP Export (#2499)
v4.11.0Compare Source
Release: Extensions (#2497)
trimesh/exchange/gltf.pytotrimesh/exchange/gltf/__init__.pywhich is identical for import users,but lets us add the additional
extensions.pynext to it.v4.10.1Compare Source
Release: Projected Precise Mode (#2491)
precision threshold before unioning every triangle in
projected(... precise=True)trimesh.grouping.group_distanceto be more coherent.v4.10.0Compare Source
Release: Collision Name (#2479)
Trimesh.remove_degenerate_facesandTrimesh.remove_duplicate_faces.SceneViewercontrol instructions from the README to printon the
hkeypress, and make the default window caption includeh for helppsutilfrom dependencies. It was only used to check if ascipy.spatial.cdistcall was going to use more than 50% of free systemmemory before falling back to a more memory-efficient but slower loop.
This now falls back to a looping method if the
cdistcall is going touse more than a fixed
4 GBof memory,Cylinder) mostly overrideareaandvolumeby checking that their primitive area/volume is not exactlyfloating point equal to their meshed volume. This caught that
Capsuledidn't return analytical volume/area which was also fixed. We could
probably make Primitive a multiple inheritance ABC that requires certain
properties but since Primitive already inherits from Trimesh that seems
unnecessary and confusing.
deprecated for low use,
being unmaintained, and inflicting a burden on upstream package
management.
v4.9.0Compare Source
Release: Unit Hints (#2468)
little silly that
20mm-xyz-cubedid not resolve asmm.guidance
updating to use the
macos-15-intelimage.trimesh.scene.lighting.autolightcrashing on emptyscenes by checking
scene.bounds is NonePBRMaterial.to_simpleusing the same conversion function for thelinear
baseColorFactorto RGB, but don't actually apply the change asit seems likely to be a source of user confusion.
Path2D.convex_hullto match every other geometry method.test_scene.pyto pytest styleLiteraltype forVoxelizationMethodsTyperatherthan a "loose string".
Configuration
📅 Schedule: (in timezone Europe/London)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.