14#include <lagrange/SurfaceMesh.h>
15#include <lagrange/raycasting/api.h>
107template <
typename Scalar,
typename Index>
111 const RayCaster* ray_caster =
nullptr);
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
A ray caster built on top of Embree that operates directly on SurfaceMesh and SimpleScene objects.
Definition RayCaster.h:190
LA_RAYCASTING_API AttributeId compute_local_feature_size(SurfaceMesh< Scalar, Index > &mesh, const LocalFeatureSizeOptions &options={}, const RayCaster *ray_caster=nullptr)
Compute local feature size for each vertex of a mesh using medial axis approximation.
Definition compute_local_feature_size.cpp:118
RayDirectionMode
Ray direction mode for local feature size computation.
Definition compute_local_feature_size.h:32
@ Both
Cast rays in all directions (full sphere).
Definition compute_local_feature_size.h:42
@ Exterior
Cast rays to the exterior of the shape (hemisphere bounded by 1-ring normals, pointing outward).
Definition compute_local_feature_size.h:39
@ Interior
Cast rays into the interior of the shape (hemisphere bounded by 1-ring normals, pointing inward).
Definition compute_local_feature_size.h:35
uint32_t AttributeId
Identified to be used to access an attribute.
Definition AttributeFwd.h:73
Raycasting operations.
Definition compute_local_feature_size.h:20
Options for compute_local_feature_size().
Definition compute_local_feature_size.h:49
float ray_offset
Ray offset along the vertex normal to avoid self-intersection (relative to bounding box diagonal).
Definition compute_local_feature_size.h:62
float medial_axis_tolerance
Error tolerance for medial axis binary search convergence (relative to bounding box diagonal).
Definition compute_local_feature_size.h:72
float default_lfs
Default local feature size value used when raycasting fails to find valid hits.
Definition compute_local_feature_size.h:66
std::string_view vertex_normal_attribute_name
Input vertex normal attribute name. If empty, vertex normals will be computed internally.
Definition compute_local_feature_size.h:54
RayDirectionMode direction_mode
Ray direction mode (interior, exterior, or both).
Definition compute_local_feature_size.h:57
std::string_view output_attribute_name
Output attribute name for local feature size values.
Definition compute_local_feature_size.h:51