15#include <lagrange/SurfaceMesh.h>
58template <
typename Scalar,
typename Index>
76template <
typename Scalar,
typename Index>
78 const SurfaceMesh<Scalar, Index>& mesh,
79 const IsolineOptions& options = {});
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
constexpr AttributeId invalid_attribute_id()
Invalid attribute id.
Definition AttributeFwd.h:76
SurfaceMesh< Scalar, Index > trim_by_isoline(const SurfaceMesh< Scalar, Index > &mesh, const IsolineOptions &options={})
Trim a mesh by the isoline of an implicit function defined on the mesh vertices/corners.
Definition isoline.cpp:325
SurfaceMesh< Scalar, Index > extract_isoline(const SurfaceMesh< Scalar, Index > &mesh, const IsolineOptions &options={})
Extract the isoline of an implicit function defined on the mesh vertices/corners.
Definition isoline.cpp:333
Main namespace for Lagrange.
Options for isoline extraction/trimming.
Definition isoline.h:31
double isovalue
Isovalue to extract or trim with.
Definition isoline.h:39
AttributeId attribute_id
Attribute ID of the scalar field to use. Can be a vertex or indexed attribute.
Definition isoline.h:33
size_t channel_index
Channel index to use for the scalar field.
Definition isoline.h:36
bool keep_below
Whether to keep the part below the isoline. Ignored for isoline extraction.
Definition isoline.h:42