Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
gltf_skeleton_io.h File Reference
#include <momentum/character/collision_geometry.h>
#include <momentum/character/joint.h>
#include <momentum/character/locator.h>
#include <momentum/character/types.h>
#include <fx/gltf.h>
#include <nlohmann/json.hpp>
#include <tuple>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

TaperedCapsule momentum::createCollisionCapsule (const fx::gltf::Node &node, const nlohmann::json &extension)
 Create a collision capsule from a glTF node.
CollisionEllipsoid momentum::createCollisionEllipsoid (const fx::gltf::Node &node, const nlohmann::json &extension)
 Create a collision ellipsoid from a glTF node.
CollisionBox momentum::createCollisionBox (const fx::gltf::Node &node, const nlohmann::json &extension)
 Create a collision box from a glTF node.
Locator momentum::createLocator (const fx::gltf::Node &node, const nlohmann::json &extension)
 Create a locator from a glTF node.
Joint momentum::createJoint (const fx::gltf::Node &node)
 Create a joint from a glTF node.
bool momentum::isHierarchyNode (const fx::gltf::Node &node)
 Check if a node is allowed in the skeleton hierarchy.
std::vector< std::vector< uint32_t > > momentum::gatherSkeletonRoots (const fx::gltf::Document &model)
 Gather skeleton roots from the glTF model.
std::tuple< std::string, JointList, CollisionGeometry_u, LocatorList, PhysicalProperties, std::vector< size_t > > momentum::loadHierarchy (const fx::gltf::Document &model)
 Load the hierarchy from the model.
JointList momentum::createSkeletonWithOnlyRoot ()
 Create a skeleton with only a root joint.