Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@Azkellas Azkellas released this 17 Sep 13:03

Migration Guide

  • generate_sdf AccelerationMethod and SignMethod were merged into one AccelerationMethod(SignMethod) when the acceleration method accepts a sign method.
  • Consider switching to AccelerationMethod::RtreeBvh (raycast) or AccelerationMethod::Rtree (normal) for faster results.
  • generate_grid_sdf is now parallelized.
  • Point trait now requires Debug and PartialEq to be implemented.

Changelog

mesh_to_sdf

[0.4.0] - 2024-09-17

Added

  • New AccelerationMethods with Rtree and RtreeBvh. Rtree uses a r-tree for distances and the normal sign method, while RtreeBvh uses a r-tree for distances and a bvh for raycast.
    Both are about 4x faster than the previous Bvh for 10k and more queries.

Changed

  • generate_grid_sdf is now fully parallelized. It's between 10x and 20x faster on a high end cpu, depending on the number of triangles and the grid resolution.
  • AccelerationMethod now includes the SignMethod when it makes sense. generate_sdf only takes the AccelerationMethod parameter, and the SignMethod is inferred from it.
    This is because not all acceleration methods support all sign methods. For example, Rtree only supports the normal sign method, while RtreeBvh supports raycasting only.
  • Point trait now requires Debug and PartialEq to be implemented.
  • RtreeBvh is the new default AccelerationMethod.

mesh_to_sdf_client

[0.4.0] - 2024-09-17

Update mesh_to_sdf dependency to 0.4.0.