|
Blender V5.0
|
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 (bPoseChannel &pchan) |
| 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 117 of file armature_deform_test.cc.
References BKE_armature_where_is_bone(), BKE_id_new(), BKE_object_add_only_object(), BKE_pose_channel_find_name(), BKE_pose_ensure(), BLI_addtail(), bmain, bArmature::bonebase, copy_v3_v3(), Object::data, Bone::head, bPoseChannel::loc, MEM_callocN(), Bone::name, OB_ARMATURE, offset_bone1(), offset_bone2(), Object::pose, Bone::rad_head, Bone::rad_tail, STRNCPY(), Bone::tail, update_pose_matrices(), and Bone::weight.
Referenced by curves_test(), edit_mesh_test(), grease_pencil_test(), and mesh_test().
|
inline |
Definition at line 237 of file armature_deform_test.cc.
References BKE_curves_add(), BKE_defvert_add_index_notest(), BKE_object_add_only_object(), bmain, curve_offsets(), Object::data, Curves::geometry, i, blender::MutableSpan< T >::index_range(), OB_CURVES, size(), vertex_positions(), vertex_weights_bone1(), and vertex_weights_bone2().
Referenced by curves_test().
|
inline |
Definition at line 267 of file armature_deform_test.cc.
References BKE_defvert_add_index_notest(), BKE_grease_pencil_add(), BKE_object_add_only_object(), BKE_object_defgroup_new(), bmain, curve_offsets(), Object::data, GreasePencilDrawing::geometry, i, blender::MutableSpan< T >::index_range(), OB_GREASE_PENCIL, size(), vertex_positions(), vertex_weights_bone1(), and vertex_weights_bone2().
Referenced by grease_pencil_test().
|
inlinestatic |
Definition at line 193 of file armature_deform_test.cc.
References BKE_defvert_add_index_notest(), BKE_mesh_new_nomain(), BLI_addtail(), i, blender::MutableSpan< T >::index_range(), MEM_callocN(), bDeformGroup::name, size(), STRNCPY(), vertex_positions(), vertex_weights_bone1(), and vertex_weights_bone2().
Referenced by create_test_mesh_object(), and mesh_test().
|
inline |
Definition at line 222 of file armature_deform_test.cc.
References BKE_mesh_add(), BKE_mesh_nomain_to_mesh(), BKE_object_add_only_object(), BLI_assert, bmain, create_test_mesh(), Object::data, and OB_MESH.
Referenced by edit_mesh_test(), and mesh_test().
|
inlinestatic |
Definition at line 187 of file armature_deform_test.cc.
References data.
Referenced by create_test_curves_object(), and create_test_grease_pencil_object().
|
inline |
Definition at line 537 of file armature_deform_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), BKE_armature_deform_coords_with_curves(), BKE_id_delete(), bmain, create_test_armature_object(), create_test_curves_object(), blender::bke::tests::Curves, Object::data, expected_deform_mats(), expected_positions(), Curves::geometry, get_defgrp_name(), get_deform_flag(), identity_deform_mats(), output, and blender::bke::tests::PositionAndDeformMatrix.
|
inline |
Definition at line 492 of file armature_deform_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), BKE_armature_deform_coords_with_editmesh(), BKE_editmesh_create(), BKE_editmesh_free_data(), BKE_id_delete(), BKE_mesh_to_bmesh(), bm, BMEditMesh::bm, BM_mesh_vert_coords_alloc(), bmain, create_test_armature_object(), create_test_mesh_object(), 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 BMeshCreateParams::use_toolflags.
|
inlinestatic |
Definition at line 379 of file armature_deform_test.cc.
References 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 303 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 433 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 402 of file armature_deform_test.cc.
References ARM_DEF_ENVELOPE, ARM_DEF_QUATERNION, 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 577 of file armature_deform_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), BKE_armature_deform_coords_with_curves(), BKE_id_delete(), BLI_assert, bmain, create_test_armature_object(), create_test_grease_pencil_object(), Object::data, expected_deform_mats(), expected_positions(), GreasePencilDrawing::geometry, get_defgrp_name(), get_deform_flag(), GP_DRAWING, blender::bke::tests::GreasePencil, identity_deform_mats(), output, blender::bke::tests::PositionAndDeformMatrix, GreasePencilDrawingBase::type, GreasePencil::vertex_group_names, and wrap().
|
inlinestatic |
Definition at line 170 of file armature_deform_test.cc.
References blender::bke::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 445 of file armature_deform_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::MutableSpan< T >::as_span(), BKE_armature_deform_coords_with_mesh(), BKE_id_delete(), BKE_id_free(), bmain, create_test_armature_object(), create_test_mesh(), create_test_mesh_object(), 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 Bone::arm_mat, BKE_pchan_calc_mat(), bPoseChannel::bone, BONE_NO_DEFORM, bPoseChannel::chan_mat, bPoseChannel_Runtime::deform_dual_quat, Bone::flag, mat4_to_dquat(), and bPoseChannel::runtime.
Referenced by create_test_armature_object().
Definition at line 157 of file armature_deform_test.cc.
References data.
Referenced by create_test_curves_object(), create_test_grease_pencil_object(), create_test_mesh(), and expected_positions().
Definition at line 175 of file armature_deform_test.cc.
References data.
Referenced by create_test_curves_object(), create_test_grease_pencil_object(), and create_test_mesh().
Definition at line 181 of file armature_deform_test.cc.
References 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().