|
Blender V5.3
|
Inherited by blender::bke::tests::ArmatureDeformTest.
Public Member Functions | |
| Object * | create_test_armature_object () const |
| Object * | create_test_mesh_object () const |
| Object * | create_test_curves_object () const |
| Object * | create_test_grease_pencil_object () const |
| void | mesh_test (const InterpolationTest interpolation, const OutputValueTest output, const WeightingTest weighting, const MaskingTest masking, const VertexWeightSource dvert_source) |
| void | edit_mesh_test (const InterpolationTest interpolation, const OutputValueTest output, const WeightingTest weighting, const MaskingTest masking) |
| void | curves_test (const InterpolationTest interpolation, const OutputValueTest output, const WeightingTest weighting, const MaskingTest masking) |
| void | grease_pencil_test (const InterpolationTest interpolation, const OutputValueTest output, const WeightingTest weighting, const MaskingTest masking) |
Static Public Member Functions | |
| static float3 | offset_bone1 () |
| static float3 | offset_bone2 () |
| static void | update_pose_matrices (bke::PChanBone pchanbone) |
| static Span< float3 > | vertex_positions () |
| static Array< float3x3 > | identity_deform_mats () |
| static Span< float > | vertex_weights_bone1 () |
| static Span< float > | vertex_weights_bone2 () |
| static Span< int > | curve_offsets () |
| static Mesh * | create_test_mesh () |
| static Span< float3 > | expected_positions (const TargetDataType target_type, const WeightingTest weighting, const MaskingTest masking) |
| static Span< float3x3 > | expected_deform_mats (const WeightingTest weighting) |
| static int | get_deform_flag (const InterpolationTest interpolation, const WeightingTest weighting) |
| static const char * | get_defgrp_name (const MaskingTest masking) |
Public Attributes | |
| Main * | bmain |
Definition at line 91 of file armature_deform_test.cc.
|
inline |
Definition at line 119 of file armature_deform_test.cc.
References blender::BKE_armature_where_is_bone(), blender::BKE_id_new(), blender::BKE_object_add_only_object(), blender::BKE_pose_channel_find_name(), blender::BKE_pose_ensure(), blender::BLI_addtail(), bmain, blender::bArmature::bonebase, blender::copy_v3_v3(), blender::Object::data, blender::Bone::head, blender::bPoseChannel::loc, blender::Bone::name, blender::OB_ARMATURE, offset_bone1(), offset_bone2(), blender::Object::pose, blender::Bone::rad_head, blender::Bone::rad_tail, blender::STRNCPY(), blender::Bone::tail, update_pose_matrices(), and blender::Bone::weight.
Referenced by curves_test(), edit_mesh_test(), grease_pencil_test(), and mesh_test().
|
inline |
Definition at line 239 of file armature_deform_test.cc.
References blender::BKE_curves_add(), blender::BKE_defvert_add_index_notest(), blender::BKE_object_add_only_object(), bmain, curve_offsets(), blender::Object::data, blender::MutableSpan< T >::index_range(), blender::OB_CURVES, vertex_positions(), vertex_weights_bone1(), and vertex_weights_bone2().
Referenced by curves_test().
|
inline |
Definition at line 269 of file armature_deform_test.cc.
References blender::BKE_defvert_add_index_notest(), blender::BKE_grease_pencil_add(), blender::BKE_object_add_only_object(), blender::BKE_object_defgroup_new(), bmain, curve_offsets(), blender::Object::data, blender::MutableSpan< T >::index_range(), layer, blender::OB_GREASE_PENCIL, blender::bke::greasepencil::Drawing::strokes_for_write(), vertex_positions(), vertex_weights_bone1(), and vertex_weights_bone2().
Referenced by grease_pencil_test().
|
inlinestatic |
Definition at line 195 of file armature_deform_test.cc.
References blender::BKE_defvert_add_index_notest(), blender::BKE_mesh_new_nomain(), blender::BLI_addtail(), blender::MutableSpan< T >::index_range(), blender::bDeformGroup::name, blender::STRNCPY(), vertex_positions(), vertex_weights_bone1(), and vertex_weights_bone2().
Referenced by create_test_mesh_object(), and mesh_test().
|
inline |
Definition at line 224 of file armature_deform_test.cc.
References blender::BKE_mesh_add(), blender::BKE_mesh_nomain_to_mesh(), blender::BKE_object_add_only_object(), blender::BLI_assert(), bmain, create_test_mesh(), blender::Object::data, and blender::OB_MESH.
Referenced by edit_mesh_test(), and mesh_test().
|
inlinestatic |
Definition at line 189 of file armature_deform_test.cc.
References blender::data.
Referenced by create_test_curves_object(), and create_test_grease_pencil_object().
|
inline |
Definition at line 540 of file armature_deform_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_armature_deform_coords_with_curves(), blender::BKE_id_delete(), bmain, create_test_armature_object(), create_test_curves_object(), blender::bke::tests::Curves, blender::Object::data, expected_deform_mats(), expected_positions(), get_defgrp_name(), get_deform_flag(), identity_deform_mats(), output, and blender::bke::tests::PositionAndDeformMatrix.
|
inline |
Definition at line 494 of file armature_deform_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_armature_deform_coords_with_editmesh(), blender::BKE_editmesh_free_data(), blender::BKE_id_delete(), blender::BKE_mesh_to_bmesh(), blender::bm, blender::BM_mesh_vert_coords_alloc(), bmain, create_test_armature_object(), create_test_mesh_object(), blender::Object::data, blender::bke::tests::EditMesh, expected_deform_mats(), expected_positions(), get_defgrp_name(), get_deform_flag(), identity_deform_mats(), output, blender::bke::tests::PositionAndDeformMatrix, and blender::BMeshCreateParams::use_toolflags.
|
inlinestatic |
Definition at line 381 of file armature_deform_test.cc.
References blender::data, blender::bke::tests::Envelope, blender::bke::tests::EnvelopeAndVertexGroups, blender::MatBase< float, 3, 3 >::identity(), identity_deform_mats(), blender::bke::tests::None, and blender::bke::tests::VertexGroups.
Referenced by curves_test(), edit_mesh_test(), grease_pencil_test(), and mesh_test().
|
inlinestatic |
Definition at line 305 of file armature_deform_test.cc.
References BLI_assert_unreachable, blender::bke::tests::EditMesh, ELEM, blender::bke::tests::Envelope, blender::bke::tests::EnvelopeAndVertexGroups, blender::bke::tests::GreasePencil, blender::bke::tests::Mesh, blender::bke::tests::None, vertex_positions(), blender::bke::tests::VertexGroup, and blender::bke::tests::VertexGroups.
Referenced by curves_test(), edit_mesh_test(), grease_pencil_test(), and mesh_test().
|
inlinestatic |
Definition at line 435 of file armature_deform_test.cc.
References blender::bke::tests::All, BLI_assert_unreachable, and blender::bke::tests::VertexGroup.
Referenced by curves_test(), edit_mesh_test(), grease_pencil_test(), and mesh_test().
|
inlinestatic |
Definition at line 404 of file armature_deform_test.cc.
References blender::ARM_DEF_ENVELOPE, blender::ARM_DEF_QUATERNION, blender::ARM_DEF_VGROUP, blender::bke::tests::DualQuaternion, blender::bke::tests::Envelope, blender::bke::tests::EnvelopeAndVertexGroups, blender::bke::tests::Linear, blender::bke::tests::None, and blender::bke::tests::VertexGroups.
Referenced by curves_test(), edit_mesh_test(), grease_pencil_test(), and mesh_test().
|
inline |
Definition at line 580 of file armature_deform_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_armature_deform_coords_with_curves(), blender::BKE_id_delete(), blender::BLI_assert(), bmain, create_test_armature_object(), create_test_grease_pencil_object(), blender::Object::data, expected_deform_mats(), expected_positions(), get_defgrp_name(), get_deform_flag(), blender::GP_DRAWING, blender::bke::tests::GreasePencil, identity_deform_mats(), output, blender::bke::tests::PositionAndDeformMatrix, blender::bke::greasepencil::Drawing::strokes_for_write(), blender::GreasePencilDrawingBase::type, and blender::gpu::wrap().
|
inlinestatic |
Definition at line 172 of file armature_deform_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::Array(), and blender::MatBase< float, 3, 3 >::identity().
Referenced by curves_test(), edit_mesh_test(), expected_deform_mats(), grease_pencil_test(), and mesh_test().
|
inline |
Definition at line 447 of file armature_deform_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::MutableSpan< T >::as_span(), blender::BKE_armature_deform_coords_with_mesh(), blender::BKE_id_delete(), blender::BKE_id_free(), bmain, create_test_armature_object(), create_test_mesh(), create_test_mesh_object(), blender::Object::data, expected_deform_mats(), expected_positions(), get_defgrp_name(), get_deform_flag(), identity_deform_mats(), blender::bke::tests::Mesh, output, blender::bke::tests::PositionAndDeformMatrix, and blender::bke::tests::SeparateMesh.
|
inlinestatic |
Definition at line 99 of file armature_deform_test.cc.
Referenced by create_test_armature_object().
|
inlinestatic |
Definition at line 103 of file armature_deform_test.cc.
Referenced by create_test_armature_object().
|
inlinestatic |
Definition at line 109 of file armature_deform_test.cc.
References blender::Bone::arm_mat, blender::BKE_pchan_calc_mat(), blender::bke::PChanBoneT< PoseChannelT, BoneT >::bone, blender::BONE_NO_DEFORM, blender::bPoseChannel::chan_mat, blender::bPoseChannel_Runtime::deform_dual_quat, blender::Bone::flag, blender::mat4_to_dquat(), blender::bke::PChanBoneT< PoseChannelT, BoneT >::pchan, and blender::bPoseChannel::runtime.
Referenced by create_test_armature_object().
Definition at line 159 of file armature_deform_test.cc.
References blender::data.
Referenced by create_test_curves_object(), create_test_grease_pencil_object(), create_test_mesh(), and expected_positions().
Definition at line 177 of file armature_deform_test.cc.
References blender::data.
Referenced by create_test_curves_object(), create_test_grease_pencil_object(), and create_test_mesh().
Definition at line 183 of file armature_deform_test.cc.
References blender::data.
Referenced by create_test_curves_object(), create_test_grease_pencil_object(), and create_test_mesh().
| Main* blender::bke::tests::ArmatureDeformTestBase::bmain |
Definition at line 93 of file armature_deform_test.cc.
Referenced by create_test_armature_object(), create_test_curves_object(), create_test_grease_pencil_object(), create_test_mesh_object(), curves_test(), edit_mesh_test(), grease_pencil_test(), mesh_test(), blender::bke::tests::ArmatureDeformTest::SetUp(), and blender::bke::tests::ArmatureDeformTest::TearDown().