Lagrange
Loading...
Searching...
No Matches
ProjectOptions Struct Reference

Options for project(). More...

#include <lagrange/raycasting/Options.h>

Inheritance diagram for ProjectOptions:
ProjectDirectionalOptions ProjectCommonOptions

Public Attributes

ProjectMode project_mode = ProjectMode::ClosestPoint
 Projection mode to choose from.
 
- Public Attributes inherited from ProjectDirectionalOptions
std::variant< std::monostate, Eigen::Vector3f, AttributeIddirection = {}
 Raycasting direction to project attributes.
 
CastMode cast_mode = CastMode::BothWays
 Whether to project forward along the ray, or both forward and backward.
 
FallbackMode fallback_mode = FallbackMode::Constant
 Fallback mode for vertices where there is no hit.
 
double default_value = 0.0
 Scalar used to fill attributes in Constant fallback mode.
 
std::function< void(uint64_t, bool)> user_callback = nullptr
 Optional callback invoked for each target vertex with (vertex index, was_hit).
 
- Public Attributes inherited from ProjectCommonOptions
std::vector< AttributeIdattribute_ids
 Additional vertex attribute ids to project (beyond vertex positions).
 
bool project_vertices = true
 Whether to project vertex positions.
 
std::function< bool(uint64_t)> skip_vertex = nullptr
 If provided, whether to skip assignment for a target vertex or not.
 

Detailed Description

Options for project().


The documentation for this struct was generated from the following file: