14#include <lagrange/SurfaceMesh.h>
15#include <lagrange/bvh/api.h>
19namespace lagrange::bvh {
48template <
typename Scalar,
typename Index>
77template <
typename Scalar,
typename Index>
103template <
typename Scalar,
typename Index>
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
uint32_t AttributeId
Identified to be used to access an attribute.
Definition AttributeFwd.h:73
@ Scalar
Mesh attribute must have exactly 1 channel.
Definition AttributeFwd.h:56
LA_BVH_API Scalar compute_hausdorff(const SurfaceMesh< Scalar, Index > &source, const SurfaceMesh< Scalar, Index > &target)
Compute the symmetric Hausdorff distance between source and target.
Definition compute_mesh_distances.cpp:101
LA_BVH_API Scalar compute_chamfer(const SurfaceMesh< Scalar, Index > &source, const SurfaceMesh< Scalar, Index > &target)
Compute the Chamfer distance between source and target.
Definition compute_mesh_distances.cpp:129
LA_BVH_API AttributeId compute_mesh_distances(SurfaceMesh< Scalar, Index > &source, const SurfaceMesh< Scalar, Index > &target, const MeshDistancesOptions &options={})
Compute the distance from each vertex in source to the closest point on target, and store the result ...
Definition compute_mesh_distances.cpp:73
Options for compute_mesh_distances.
Definition compute_mesh_distances.h:28
std::string output_attribute_name
Name of the output per-vertex scalar attribute written to the source mesh.
Definition compute_mesh_distances.h:30