Migration Guide
generate_sdf
AccelerationMethod
andSignMethod
were merged into oneAccelerationMethod(SignMethod)
when the acceleration method accepts a sign method.- Consider switching to
AccelerationMethod::RtreeBvh
(raycast) orAccelerationMethod::Rtree
(normal) for faster results. generate_grid_sdf
is now parallelized.Point
trait now requiresDebug
andPartialEq
to be implemented.
Changelog
mesh_to_sdf
[0.4.0] - 2024-09-17
Added
- New
AccelerationMethod
s withRtree
andRtreeBvh
.Rtree
uses a r-tree for distances and the normal sign method, whileRtreeBvh
uses a r-tree for distances and a bvh for raycast.
Both are about 4x faster than the previousBvh
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 theSignMethod
when it makes sense.generate_sdf
only takes theAccelerationMethod
parameter, and theSignMethod
is inferred from it.
This is because not all acceleration methods support all sign methods. For example,Rtree
only supports the normal sign method, whileRtreeBvh
supports raycasting only.Point
trait now requiresDebug
andPartialEq
to be implemented.RtreeBvh
is the new defaultAccelerationMethod
.
mesh_to_sdf_client
[0.4.0] - 2024-09-17
Update mesh_to_sdf
dependency to 0.4.0
.