Skip to content

Release v3.2.0.75

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 09:15
b4a33c0

Autogenerated release v3.2.0.75
b4a33c0

OS Dev
Windows x64 (Visual Studio 2019) zip / pdb
Windows x64 (Visual Studio 2022) zip / pdb
Windows x64 (Visual Studio 2026) zip / pdb
Windows arm64 (Visual Studio 2026) zip / pdb
Windows x64 (clang-cl, Release only) zip / pdb
Windows arm64 (clang-cl, Release only) zip / pdb
Ubuntu 22 LTS x64 deb
Ubuntu 22 LTS arm64 deb
Ubuntu 24 LTS x64 deb
Ubuntu 24 LTS arm64 deb
Ubuntu 26 LTS x64 deb
Ubuntu 26 LTS arm64 deb
Linux vcpkg (glibc 2.28) x64 tar.xz
Linux vcpkg (glibc 2.28) arm64 tar.xz
macOS x64 (Intel) x64 pkg
macOS Arm (Apple Silicon) arm64 pkg
Emscripten multi-thread (web environment) zip
Emscripten single-thread (web environment) zip
Emscripten multi-thread Wasm64 (web environment) zip

What's Changed

API:

  • globalRegistration: register several meshes or point clouds with normals as one or several groups without any initial alignment (FPFH matches, RANSAC with overlap scoring and ICP); about 4x faster findFPFHMatches and findRigidXfRansac.
  • TriMesh everywhere: from...AsTriMesh loaders for OBJ, STL, PLY and DXF, fromOffAsFaceSoup, TriMesh overloads of all mesh savers (OFF, OBJ, STL, 3MF), TriMesh::fromMesh and Mesh::fromTriMeshDuplicatingNonManifoldVertices.
  • Queries on an explicit AABBTree: findProjection, findTrisInBall, rayMeshIntersect, rayMeshIntersectAll, planeMeshIntersect and others take vertex coordinates and a tree, e.g. one built from a TriMesh or a region.
  • boolean( const Mesh&, Mesh&& ) and boolean( Mesh&&, const Mesh& ): subtract the same tool many times from a stock without copying it.
  • MeshLoadSettings::triCornerUvCoords returns the per-corner UV coordinates of PLY files; makeObjectFromMeshFile converts them or samples vertex colors from the texture.
  • SurfaceDistanceBuilder::setNoLocalMinima; AABBTree::numTris() and numNodes().

Breaking changes:

  • MeshProjectionResult, MeshIntersectionResult and SignedDistanceToMeshResult store TriPointf tp (relative to getTriVerts( face )) instead of MeshTriPoint mtp; the method mtp( topology ) returns the previous value.
  • Mesh::fromFaceSoup takes one FaceSoup &&; ThreeVertIds is a struct instead of std::array<VertId, 3>.
  • MeshLoad::fromPly no longer converts per-corner UVs itself: makeObjectFromMeshFile does it.
  • PointsToMeshProjector returns proj.point in the reference mesh space also for a non-rigid refXf (it was world space).

Meshes:

  • Fast-marching and geodesic paths always reach the end, which fixes a crash in surfaceLineToMeshContour (e.g. cutting a mesh along a spline).
  • Precise projection on a mesh with a non-rigid transformation, on the CPU and in CUDA, for small triangles far from the origin.
  • VDB loading: fixed a crash from OpenVDB's delayed loading reading a freed grid.
  • CUDA: point cloud algorithms respect skipSameIndex and sqrtAngleWeight.

Performance:

  • AABB trees of meshes and point clouds have a SIMD layout: queries test 4 children at once, and refit is up to 2x faster for meshes and 2-5x for point clouds.
  • AABB tree build is faster again: no index tie-break in the median selection (point cloud trees 42-69% faster), parallel splits for meshes under 512k triangles, and no stored boxes with 16+ threads.
  • BitSet counts use the hardware popcnt instruction, selected at load time on x64, and i8x16.popcnt in WebAssembly.
  • getTriangulation and getAllTriVerts up to 76% faster at all threads; fewer store-forwarding stalls in findDistance and self-collisions.

Python:

  • The wheels are built with the Python 3.8 headers on every platform, as CPython recommends for the limited API.

C#:

  • foreach works again on std::vector, std::array and MR::Vector, broken since 3.2.0.

Platforms and packages:

  • Code built on top of MeshLib no longer needs to link mimalloc itself: MR::Allocator calls it inside MRMesh (mimalloc.dll is still needed at run time).
  • Windows CUDA 12.0 -> 12.4 and 13.2 -> 13.4, without unsupported-compiler workarounds.
  • clang-cl builds use -fstrict-aliasing.

Documentation:

  • The readme links the Rust and Java setup guides on meshlib.io.

Other:

  • Small improvements and bugfixes.

Commit: b4a33c0

Full Changelog: v3.2.0.29...v3.2.0.75