Lagrange
AttributeEvaluator Class Reference

Attribute evaluator class. More...

#include <lagrange/poisson/AttributeEvaluator.h>

Classes

struct  Impl
 

Public Member Functions

template<typename Scalar , typename Index >
 AttributeEvaluator (const SurfaceMesh< Scalar, Index > &points, const EvaluatorOptions &options={})
 Constructs a new attribute evaluator for a point cloud. More...
 
 ~AttributeEvaluator ()
 Destroys the object.
 
template<typename Scalar , typename ValueType >
void eval (span< const Scalar > pos, span< ValueType > out) const
 Evaluate the extrapolated attribute at any point in 3D space. More...
 

Detailed Description

Attribute evaluator class.

Once constructed, it allows interpolating a signal from point cloud data.

Constructor & Destructor Documentation

◆ AttributeEvaluator()

AttributeEvaluator ( const SurfaceMesh< Scalar, Index > &  points,
const EvaluatorOptions options = {} 
)

Constructs a new attribute evaluator for a point cloud.

Parameters
[in]pointsPoint cloud to evaluate.
[in]optionsAttribute evaluation option.
Template Parameters
ScalarPoint cloud scalar type.
IndexPoint cloud index type.

Member Function Documentation

◆ eval()

void eval ( span< const Scalar >  pos,
span< ValueType >  out 
) const

Evaluate the extrapolated attribute at any point in 3D space.

Parameters
[in]posPosition to evalute at.
[in]outOutput buffer to write the evaluated attribute values.
Template Parameters
ScalarPoint coordinate scalar type.
ValueTypeAttribute value type.

The documentation for this class was generated from the following files: