Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
bvh_io.h File Reference
#include <momentum/character/character.h>
#include <momentum/character/types.h>
#include <momentum/common/filesystem.h>
#include <momentum/math/types.h>
#include <span>
#include <tuple>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

Character momentum::loadBvhCharacter (const filesystem::path &filepath)
 Loads a character from a BVH (BioVision Hierarchy) file.
Character momentum::loadBvhCharacter (std::span< const std::byte > bytes)
 Loads a character from a BVH file buffer.
std::tuple< Character, MotionParameters, float > momentum::loadBvhCharacterWithMotion (const filesystem::path &filepath)
 Loads a character with motion data from a BVH (BioVision Hierarchy) file.
std::tuple< Character, MotionParameters, float > momentum::loadBvhCharacterWithMotion (std::span< const std::byte > bytes)
 Loads a character with motion data from a BVH file buffer.
void momentum::saveBvhCharacter (const filesystem::path &filepath, const Character &character)
 Saves a character to a BVH file with a single rest-pose frame.
void momentum::saveBvhCharacterWithMotion (const filesystem::path &filepath, const Character &character, const MotionParameters &motionParams, float fps)
 Saves a character with motion data to a BVH file.
std::vector< std::byte > momentum::saveBvhCharacterWithMotion (const Character &character, const MotionParameters &motionParams, float fps)
 Saves a character with motion data to a byte buffer in BVH format.