Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::FileSaveOptions Struct Reference

Unified options for saving files in both FBX and GLTF formats. More...

#include <file_save_options.h>

Public Attributes

bool mesh = true
 Include mesh geometry in the output (default: true).
bool locators = true
 Include locators in the output (default: true).
bool collisions = true
 Include collision geometry in the output (default: true).
bool blendShapes = true
 Include blend shapes in the output (default: true).
Permissive permissive = Permissive::No
 Permissive mode: allow saving mesh-only characters without skin weights (default: false).
FbxCoordSystemInfo coordSystemInfo = {}
 FBX coordinate system configuration (default: Maya Y-up).
std::string_view fbxNamespace = ""
 Optional namespace prefix for FBX node names (e.g., "ns" becomes "ns:") Only used for FBX output (default: empty = no namespace).
bool extensions = true
 Enable GLTF extensions (default: true) Only used for GLTF output.
GltfFileFormat gltfFileFormat = GltfFileFormat::Auto
 GLTF file format selection (default: Auto) Only used for GLTF output.
GltfAnimationInterpolation gltfAnimationInterpolation = GltfAnimationInterpolation::Step
 Interpolation of the joint and blend shape animation samplers (default: Step) Marker animation always uses Step.

Detailed Description

Unified options for saving files in both FBX and GLTF formats.

This struct consolidates save options that were previously scattered across multiple function parameters. Format-specific options (e.g., FBX coordinate system, GLTF extensions) are included but only used by their respective formats.

Definition at line 85 of file file_save_options.h.

Member Data Documentation

◆ blendShapes

bool momentum::FileSaveOptions::blendShapes = true

Include blend shapes in the output (default: true).

Definition at line 98 of file file_save_options.h.

◆ collisions

bool momentum::FileSaveOptions::collisions = true

Include collision geometry in the output (default: true).

Definition at line 95 of file file_save_options.h.

◆ coordSystemInfo

FbxCoordSystemInfo momentum::FileSaveOptions::coordSystemInfo = {}

FBX coordinate system configuration (default: Maya Y-up).

Definition at line 106 of file file_save_options.h.

◆ extensions

bool momentum::FileSaveOptions::extensions = true

Enable GLTF extensions (default: true) Only used for GLTF output.

Definition at line 116 of file file_save_options.h.

Referenced by momentum::makeCharacterDocument().

◆ fbxNamespace

std::string_view momentum::FileSaveOptions::fbxNamespace = ""

Optional namespace prefix for FBX node names (e.g., "ns" becomes "ns:") Only used for FBX output (default: empty = no namespace).

Definition at line 110 of file file_save_options.h.

◆ gltfAnimationInterpolation

GltfAnimationInterpolation momentum::FileSaveOptions::gltfAnimationInterpolation = GltfAnimationInterpolation::Step

Interpolation of the joint and blend shape animation samplers (default: Step) Marker animation always uses Step.

Only used for GLTF output

Definition at line 124 of file file_save_options.h.

Referenced by momentum::makeCharacterDocument().

◆ gltfFileFormat

GltfFileFormat momentum::FileSaveOptions::gltfFileFormat = GltfFileFormat::Auto

GLTF file format selection (default: Auto) Only used for GLTF output.

Definition at line 120 of file file_save_options.h.

Referenced by momentum::saveGltfCharacter(), and momentum::saveGltfCharacter().

◆ locators

bool momentum::FileSaveOptions::locators = true

Include locators in the output (default: true).

Definition at line 92 of file file_save_options.h.

◆ mesh

bool momentum::FileSaveOptions::mesh = true

Include mesh geometry in the output (default: true).

Definition at line 89 of file file_save_options.h.

◆ permissive

Permissive momentum::FileSaveOptions::permissive = Permissive::No

Permissive mode: allow saving mesh-only characters without skin weights (default: false).

Definition at line 101 of file file_save_options.h.


The documentation for this struct was generated from the following file: