Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
blend_shape_io.h File Reference
#include <momentum/character/blend_shape.h>
#include <momentum/common/filesystem.h>
#include <iosfwd>

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

BlendShapeBase momentum::loadBlendShapeBase (const filesystem::path &filename, int expectedShapes=-1, int expectedVertices=-1)
 Loads blend shape vectors from a file without base shape.
BlendShapeBase momentum::loadBlendShapeBase (std::istream &data, int expectedShapes=-1, int expectedVertices=-1)
 Loads blend shape vectors from a stream without base shape.
BlendShape momentum::loadBlendShape (const filesystem::path &filename, int expectedShapes=-1, int expectedVertices=-1)
 Loads a blend shape from a file, including base shape and shape vectors.
BlendShape momentum::loadBlendShape (std::istream &data, int expectedShapes=-1, int expectedVertices=-1)
 Loads a blend shape from a stream, including base shape and shape vectors.
void momentum::saveBlendShapeBase (const filesystem::path &filename, const BlendShapeBase &blendShapeBase)
 Saves a blend shape base (shape vectors) to a file.
void momentum::saveBlendShape (const filesystem::path &filename, const BlendShape &blendShape)
 Saves a blend shape to a file.
void momentum::saveBlendShapeBase (std::ostream &os, const BlendShapeBase &blendShapeBase)
 Saves a blend shape base (shape vectors) to a stream.
void momentum::saveBlendShape (std::ostream &os, const BlendShape &blendShape)
 Saves a blend shape to a stream.