Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
blend_shape_io.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
13#include <iosfwd>
14
15namespace momentum {
16
24 const filesystem::path& filename,
25 int expectedShapes = -1,
26 int expectedVertices = -1);
27
35loadBlendShapeBase(std::istream& data, int expectedShapes = -1, int expectedVertices = -1);
36
46 const filesystem::path& filename,
47 int expectedShapes = -1,
48 int expectedVertices = -1);
49
56BlendShape loadBlendShape(std::istream& data, int expectedShapes = -1, int expectedVertices = -1);
57
62void saveBlendShapeBase(const filesystem::path& filename, const BlendShapeBase& blendShapeBase);
63
68void saveBlendShape(const filesystem::path& filename, const BlendShape& blendShape);
69
74void saveBlendShapeBase(std::ostream& os, const BlendShapeBase& blendShapeBase);
75
80void saveBlendShape(std::ostream& os, const BlendShape& blendShape);
81
82} // namespace momentum
void saveBlendShape(const filesystem::path &filename, const BlendShape &blendShape)
Saves a blend shape to a file.
BlendShapeBase loadBlendShapeBase(const filesystem::path &filename, int expectedShapes, int expectedVertices)
Loads blend shape vectors from a file without base shape.
BlendShape loadBlendShape(const filesystem::path &filename, int expectedShapes, int expectedVertices)
Loads a blend shape from a file, including base shape and shape vectors.
void saveBlendShapeBase(const filesystem::path &filename, const BlendShapeBase &blendShapeBase)
Saves a blend shape base (shape vectors) to a file.
Skinning class that manages blend shape vectors/offsets.
Skinning class that combines blend shape vectors with a base shape.
Definition blend_shape.h:19