Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
blend_shape_skinning.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#pragma once
9
12#include <momentum/math/fwd.h>
13
14namespace momentum {
15
33
44template <typename T>
46 const Character& character,
47 const SkeletonStateT<T>& state,
48 const BlendWeightsT<T>& blendWeights,
49 MeshT<T>& outputMesh);
50
60template <typename T>
62 const Character& character,
63 const SkeletonStateT<T>& state,
64 const ModelParametersT<T>& modelParams,
65 MeshT<T>& outputMesh);
66
75template <typename T>
77 const ParameterTransform& paramTransform,
78 const ModelParametersT<T>& modelParams);
79
89template <typename T>
91 const ParameterTransform& paramTransform,
92 const ModelParametersT<T>& modelParams);
93
94} // namespace momentum
void skinWithBlendShapes(const Character &character, const SkeletonStateT< T > &state, const ModelParametersT< T > &modelParams, MeshT< T > &outputMesh)
Applies blend shape deformations and skeletal transformations to a mesh.
BlendWeightsT< T > extractFaceExpressionBlendWeights(const ParameterTransform &paramTransform, const ModelParametersT< T > &modelParams)
Extracts facial expression blend shape weights from model parameters.
ParameterTransformT< float > ParameterTransform
Definition fwd.h:244
BlendWeightsT< T > extractBlendWeights(const ParameterTransform &paramTransform, const ModelParametersT< T > &modelParams)
Extracts blend shape weights from model parameters.
A character model with skeletal structure, mesh, and optional components.
Definition character.h:32
A generic mesh representation with support for vertices, faces, lines, and texture coordinates.
Definition mesh.h:20
A vector of size numModelParams holding the values of all model parameters for a character.
Definition types.h:99
Represents the complete state of a skeleton.