14#ifdef LAGRANGE_ENABLE_LEGACY_FUNCTIONS
15 #include <lagrange/legacy/select_facets_in_frustum.h>
18#include <lagrange/SurfaceMesh.h>
34template <
typename Scalar>
40 std::array<Scalar, 3> normal;
41 std::array<Scalar, 3> point;
83template <
typename Scalar,
typename Index>
bool select_facets_in_frustum(SurfaceMesh< Scalar, Index > &mesh, const Frustum< Scalar > &frustum, const FrustumSelectionOptions &options={})
Select all facets that intersect the cone/frustrum bounded by 4 planes defined by (n_i,...
Definition: select_facets_in_frustum.cpp:32
Main namespace for Lagrange.
Definition: AABBIGL.h:30
A plane defined by a normal and a point.
Definition: select_facets_in_frustum.h:39
An array of four planes that define a frustum.
Definition: select_facets_in_frustum.h:36
std::array< Plane, 4 > planes
Four planes that define a frustum.
Definition: select_facets_in_frustum.h:45
Option struct for selecting facets.
Definition: select_facets_in_frustum.h:52
bool greedy
If true, then select_facets_in_frustum will stop after it finds the first facet.
Definition: select_facets_in_frustum.h:54
std::string_view output_attribute_name
The output attribute name for the selection.
Definition: select_facets_in_frustum.h:58