Releases: Azkellas/mesh_to_sdf
Releases · Azkellas/mesh_to_sdf
v0.4.0
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.
v0.3.0 / v0.3.1
Migration Guide
generate_sdfneeds an additionnalAccelerationMethodparameter.Pointcustom implementations need to be (de-)serializable if the featureserdeis enabled and specify theSerdeassociated typenalgebrafeature was removed as it is required byAccelerationMethod::Bvh
Changelog
mesh_to_sdf
[0.3.0]
Added
generate_sdftakes an additionalAccelerationMethodparameter, that can be eitherAccelerationMethod::Bvh(default) orAccelerationMethod::None.
Bvhis recommended unless you're really tight on memory or your query is very small (couple hundreds of queries and triangles).
For example, a query of 15k points with 100k triangles is 10 times faster with a bvh, and twice faster for 500 queries and 10k triangles.
Bvhis also optimised for theSignMethod::Raycastsign method. #75- Both generic and grid based sdfs can now be (de-)serialized. Use
SerializeGridandDeserializeGrid, or the helperssave_to_fileandread_from_file.
Fixed
- Fix #25 where
generate_grid_sdfmight panic if the grid does not contain the mesh. - Make grid based generation ~2x faster by improving heap generation.
Removed
- nalgebra is no longer optional as it is required by bvh. The feature was removed as it will always be available.
mesh_to_sdf_client
[0.3.1]
Fixed
- Fix overflow when loading gltf.
[0.3.0]
Added
- Voxel and Raymarch visualizations now map the material of the mesh onto the new geometry.
Changed
- Parallelize loading of the mesh.
v0.2.1
Migration Guide
Changelogs
In generate_grid_sdf signature, replace &cell_count by cell_count.
mesh_to_sdf
[0.2.1] - 2024-02-18
Changed
generate_grid_sdfwithSignMethod::Raycastnow tests in the three directions (+x, +y, +z). This does not slow the computation down, but it makes the result more robust. This does not affectgenerate_sdf.Grid::from_bounding_boxtakes a[usize; 3]instead of&[usize; 3]forcell_count
mesh_to_sdf_client
[0.2.1] - 2024-02-18
Update mesh_to_sdf dependency to 0.2.1 since it had a breaking change.
v0.2.0
Migration Guide
mesh_to_sdf::generate_sdf and mesh_to_sdf::generate_grid_sdf require a new SignMethod parameter at the end of their signature.
Use mesh_to_sdf::SignMethod::Normal to keep the same behavior as the previous version, but consider switching to mesh_to_sdf::SignMethod::Raycast for better results if your meshes are watertight.
Changelogs
mesh_to_sdf
[0.2.0] - 2024-02-16
Added
SignMethodenum to represent the sign method used to calculate the signed distance.generate_sdfandgenerate_grid_sdfnow take aSignMethodparameter.SignMethod::Raycastto use raycasting to determine the sign of the distance.
mesh_to_sdf_client
[0.2.0] - 2024-02-16
Added
- Isosurface control for point cloud, voxels and raymarching visualization.
- Expose
SignMethodenum in UI.
v0.1.0
mesh_to-sdf
[0.1.0] - 2024-02-05
First release of mesh_to_sdf.
Added
generate_sdffunction to get the signed distance from query points to a mesh.generate_grid_sdffunction to get the signed distance from a grid to a mesh.Pointtrait to allow the use of any type as vertices.Topologyenum to represent the topology of the mesh.Gridstruct to represent a grid.[f32; 3]implementation forPointtrait.cgmathimplementation forPointtrait.glamimplementation forPointtrait.mintimplementation forPointtrait.nalgebraimplementation forPointtrait.
mesh_to_sdf_client
[0.1.0] - 2024-02-05
First release of mesh_to_sdf_client.
Added
- Model visualization with a Blinn-Phong shader.
- SDF visualization with a point cloud.
- SDF point size and color customization.
- Model + SDF visualization.
- Raymarching visualization (snap, trilinear and tetrahedral interpolations).
- Voxels visualization.
- Model and SDF metrics.
- Light control.
- Grid parametrization (cell count, size, and bounding box extension).