Blender V5.3
armature_deform.cc File Reference
#include <cctype>
#include <cfloat>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "BLI_listbase.hh"
#include "BLI_listbase_wrapper.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_quaternion.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_task.hh"
#include "BLI_task_c.hh"
#include "DNA_action_types.h"
#include "DNA_armature_types.h"
#include "DNA_lattice_types.h"
#include "DNA_listBase.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BKE_action.hh"
#include "BKE_armature.hh"
#include "BKE_customdata.hh"
#include "BKE_deform.hh"
#include "BKE_editmesh.hh"
#include "BKE_lattice.hh"
#include "BKE_mesh.hh"
#include "BKE_pose.hh"
#include "MEM_guardedalloc.h"
#include "CLG_log.h"

Go to the source code of this file.

Classes

struct  blender::bke::BoneDeformLinearMixer< full_deform >
struct  blender::bke::BoneDeformDualQuaternionMixer< full_deform >
struct  blender::bke::ArmatureDeformParams
struct  blender::bke::ArmatureEditMeshUserdata

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke

Functions

template<typename MixerT>
static void blender::bke::b_bone_deform (const bke::PChanBoneConst pchanbone, const float3 &co, const float weight, MixerT &mixer)
template<typename MixerT>
static float blender::bke::dist_bone_deform (const bke::PChanBoneConst pchanbone, const float3 &co, MixerT &mixer)
template<typename MixerT>
static float blender::bke::pchan_bone_deform (const PChanBone pchanbone, const float weight, const float3 &co, MixerT &mixer)
static ArmatureDeformParams blender::bke::get_armature_deform_params (const Object &ob_arm, const Object &ob_target, const ListBaseT< bDeformGroup > *defbase, MutableSpan< float3 > vert_coords, std::optional< Span< float3 > > vert_coords_prev, std::optional< MutableSpan< float3x3 > > vert_deform_mats, const int deformflag, StringRefNull defgrp_name, const bool try_use_dverts)
template<typename MixerT>
static void blender::bke::armature_vert_task_with_mixer (const ArmatureDeformParams &params, const int i, const MDeformVert *dvert, MixerT &mixer)
static void blender::bke::armature_vert_task_with_dvert (const ArmatureDeformParams &deform_params, const int i, const MDeformVert *dvert, const bool use_quaternion)
static void blender::bke::armature_deform_coords (const Object &ob_arm, const Object &ob_target, const ListBaseT< bDeformGroup > *defbase, const MutableSpan< float3 > vert_coords, const std::optional< MutableSpan< float3x3 > > vert_deform_mats, const int deformflag, const std::optional< Span< float3 > > vert_coords_prev, StringRefNull defgrp_name, const std::optional< Span< MDeformVert > > dverts, const Mesh *me_target)
template<bool use_dvert>
static void blender::bke::armature_vert_task_editmesh (void *__restrict userdata, MempoolIterData *iter, const TaskParallelTLS *__restrict)
static void blender::bke::armature_deform_editmesh (const Object &ob_arm, const Object &ob_target, const ListBaseT< bDeformGroup > *defbase, const MutableSpan< float3 > vert_coords, const std::optional< MutableSpan< float3x3 > > vert_deform_mats, const int deformflag, const std::optional< Span< float3 > > vert_coords_prev, StringRefNull defgrp_name, const BMesh &bm_target, const int cd_dvert_offset)
static bool blender::bke::verify_armature_deform_valid (const Object &ob_arm)
Armature Deform Internal Utilities
static float blender::bone_envelope_falloff (const float distance_squared, const float closest_radius, const float falloff_distance)
float blender::distfactor_to_bone (const float3 &position, const float3 &head, const float3 &tail, float radius_head, float radius_tail, float falloff_distance)
Deform 3D Coordinates by Armature (<tt>armature_deform.cc</tt>)
void blender::BKE_armature_deform_coords_with_curves (const Object &ob_arm, const Object &ob_target, const ListBaseT< bDeformGroup > *defbase, MutableSpan< float3 > vert_coords, std::optional< Span< float3 > > vert_coords_prev, std::optional< MutableSpan< float3x3 > > vert_deform_mats, Span< MDeformVert > dverts, int deformflag, StringRefNull defgrp_name)
void blender::BKE_armature_deform_coords_with_mesh (const Object &ob_arm, const Object &ob_target, MutableSpan< float3 > vert_coords, std::optional< Span< float3 > > vert_coords_prev, std::optional< MutableSpan< float3x3 > > vert_deform_mats, int deformflag, StringRefNull defgrp_name, const Mesh *me_target)
void blender::BKE_armature_deform_coords_with_editmesh (const Object &ob_arm, const Object &ob_target, MutableSpan< float3 > vert_coords, std::optional< Span< float3 > > vert_coords_prev, std::optional< MutableSpan< float3x3 > > vert_deform_mats, int deformflag, StringRefNull defgrp_name, const BMesh &bm_target)

Variables

static CLG_LogRef blender::LOG = {"geom.armature_deform"}

Detailed Description

Deform coordinates by a armature object (used by modifier).

Definition in file armature_deform.cc.