Migration Guide
generate_sdfAccelerationMethodandSignMethodwere 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_sdfis now parallelized.Pointtrait now requiresDebugandPartialEqto be implemented.
Changelog
mesh_to_sdf
[0.4.0] - 2024-09-17
Added
- New
AccelerationMethods withRtreeandRtreeBvh.Rtreeuses a r-tree for distances and the normal sign method, whileRtreeBvhuses a r-tree for distances and a bvh for raycast.
Both are about 4x faster than the previousBvhfor 10k and more queries.
Changed
generate_grid_sdfis 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.AccelerationMethodnow includes theSignMethodwhen it makes sense.generate_sdfonly takes theAccelerationMethodparameter, and theSignMethodis inferred from it.
This is because not all acceleration methods support all sign methods. For example,Rtreeonly supports the normal sign method, whileRtreeBvhsupports raycasting only.Pointtrait now requiresDebugandPartialEqto be implemented.RtreeBvhis the new defaultAccelerationMethod.
mesh_to_sdf_client
[0.4.0] - 2024-09-17
Update mesh_to_sdf dependency to 0.4.0.