DeepSDFStruct.deep_sdf.metrics.mesh_to_analytical#
Mesh-to-Analytical SDF Evaluation#
This module provides functions for evaluating mesh quality by computing SDF values at mesh vertices using ground truth analytical SDFs.
This is useful for: - Quantifying reconstruction accuracy - Measuring surface deviation - Validating mesh generation algorithms
Functions
|
Symmetric Chamfer distance between two meshes. |
|
Calculates the SDF for every vertex on the mesh |
- DeepSDFStruct.deep_sdf.metrics.mesh_to_analytical.chamfer_distance(mesh_a, mesh_b, n_surface_samples=10000)#
Symmetric Chamfer distance between two meshes.
- Parameters:
mesh_a (trimesh.Trimesh) – First mesh.
mesh_b (trimesh.Trimesh) – Second mesh.
n_surface_samples (int) – Number of points sampled on each mesh surface.
- Returns:
Symmetric Chamfer distance.
- Return type:
float
- DeepSDFStruct.deep_sdf.metrics.mesh_to_analytical.mesh_to_analytical(gt_sdf, gen_mesh)#
Calculates the SDF for every vertex on the mesh
- Return type:
float- Parameters:
gt_sdf (DeepSDFStruct.SDF.SDFBase)
gen_mesh (DeepSDFStruct.mesh.torchSurfMesh)