Blender V4.5
blender::io::fbx::ArmatureImportContext Struct Reference

Public Member Functions

 ArmatureImportContext (Main &main, const ufbx_scene &fbx, const FBXImportParams &params, FbxElementMapping &mapping)
 
Objectcreate_armature_for_node (const ufbx_node *node)
 
void create_armature_bones (const ufbx_node *node, Object *arm_obj, const Set< const ufbx_node * > &bone_nodes, EditBone *parent_bone, const ufbx_matrix &parent_mtx, const ufbx_matrix &world_to_arm, const float parent_bone_size)
 
void find_armatures (const ufbx_node *node)
 
void calc_bone_bind_matrices ()
 

Public Attributes

Mainbmain
 
const ufbx_scene & fbx
 
const FBXImportParamsparams
 
FbxElementMappingmapping
 

Detailed Description

Definition at line 26 of file fbx_import_armature.cc.

Constructor & Destructor Documentation

◆ ArmatureImportContext()

blender::io::fbx::ArmatureImportContext::ArmatureImportContext ( Main & main,
const ufbx_scene & fbx,
const FBXImportParams & params,
FbxElementMapping & mapping )
inline

Definition at line 32 of file fbx_import_armature.cc.

Member Function Documentation

◆ calc_bone_bind_matrices()

◆ create_armature_bones()

void blender::io::fbx::ArmatureImportContext::create_armature_bones ( const ufbx_node * node,
Object * arm_obj,
const Set< const ufbx_node * > & bone_nodes,
EditBone * parent_bone,
const ufbx_matrix & parent_mtx,
const ufbx_matrix & world_to_arm,
const float parent_bone_size )

Definition at line 100 of file fbx_import_armature.cc.

References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BLI_assert, BONE_CONNECTED, BONE_INHERIT_SCALE_NONE, blender::io::fbx::FbxElementMapping::bone_is_skinned, BONE_SELECTED, blender::io::fbx::FbxElementMapping::bone_to_armature, blender::io::fbx::FbxElementMapping::bone_to_bind_matrix, blender::io::fbx::FbxElementMapping::bone_to_length, blender::io::fbx::FbxElementMapping::calc_local_bind_matrix(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), create_armature_bones(), Object::data, blender::math::distance_squared(), ED_armature_ebone_add(), ED_armature_ebone_from_mat4(), EditBone::flag, blender::io::fbx::get_fbx_name(), blender::io::fbx::FbxElementMapping::get_node_bind_matrix(), EditBone::head, FBXImportParams::ignore_leaf_bones, EditBone::inherit_scale_mode, blender::math::length(), mapping, blender::io::fbx::matrix_to_m44(), blender::math::max(), EditBone::name, name, node, blender::io::fbx::FbxElementMapping::node_is_blender_bone, blender::io::fbx::FbxElementMapping::node_to_name, params, EditBone::parent, pos, and EditBone::tail.

Referenced by create_armature_bones(), and find_armatures().

◆ create_armature_for_node()

◆ find_armatures()

Member Data Documentation

◆ bmain

Main& blender::io::fbx::ArmatureImportContext::bmain

Definition at line 27 of file fbx_import_armature.cc.

Referenced by create_armature_for_node(), and find_armatures().

◆ fbx

const ufbx_scene& blender::io::fbx::ArmatureImportContext::fbx

Definition at line 28 of file fbx_import_armature.cc.

Referenced by calc_bone_bind_matrices().

◆ mapping

FbxElementMapping& blender::io::fbx::ArmatureImportContext::mapping

◆ params

const FBXImportParams& blender::io::fbx::ArmatureImportContext::params

Definition at line 29 of file fbx_import_armature.cc.

Referenced by create_armature_bones(), and create_armature_for_node().


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