69 std::string_view name =
"");
Vector< T, Dynamic > VectorX
Dynamic-size column vector. Common return type for solver residuals and parameter vectors.
gsl::span< T > span
Span type alias using gsl::span (C++17 fallback).
MatrixX< float > MatrixXf
virtual ~BlendShapeBase()=default
const MatrixXf & getShapeVectors() const
BlendShapeBase(const BlendShapeBase &)=default
BlendShapeBase & operator=(const BlendShapeBase &)=default
VectorX< T > computeDeltas(const BlendWeightsT< T > &blendWeights) const
Calculates weighted combination of shape vectors.
BlendShapeBase(BlendShapeBase &&)=default
void setShapeName(size_t index, std::string_view name)
std::vector< std::string > shapeNames_
void setShapeVectors(const MatrixXf &shapeVectors, momentum::span< const std::string > shapeNames={})
const std::vector< std::string > & getShapeNames() const
Eigen::Index shapeSize() const
void applyDeltas(const BlendWeightsT< T > &blendWeights, std::vector< Eigen::Vector3< T > > &result) const
Adds weighted shape vectors to existing vertices.
BlendShapeBase & operator=(BlendShapeBase &&)=default
void setShapeVector(size_t index, momentum::span< const Vector3f > shapeVector, std::string_view name="")
std::string_view getShapeName(size_t index) const