Blender V5.3
armature_test.cc File Reference
#include "BKE_action.hh"
#include "BKE_armature.hh"
#include "BKE_gtest_base.hh"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "BKE_object.hh"
#include "BKE_object_types.hh"
#include "BLI_listbase.hh"
#include "BLI_math_matrix.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_string.hh"
#include "DNA_ID.h"
#include "DNA_action_types.h"
#include "DNA_armature_types.h"
#include "DNA_object_types.h"
#include "MEM_guardedalloc.h"
#include "testing/testing.h"

Go to the source code of this file.

Classes

class  blender::bke::tests::BKE_armature_find_selected_bones_test
class  blender::bke::tests::BoneIndexTestBase
class  blender::bke::tests::ArmatureBoneIndexTest
class  blender::bke::tests::PoseBoneIndexTest

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::bke::tests

Macros

#define TEST_VEC_ROLL_TO_MAT3_ORTHOGONAL(name, s, x1, x2, y1, y2)

Functions

static double blender::bke::tests::EXPECT_M3_ORTHOGONAL (const float mat[3][3], double epsilon_scale, double epsilon_ortho)
 blender::bke::tests::TEST (mat3_vec_to_roll, UnitMatrix)
 blender::bke::tests::TEST (mat3_vec_to_roll, Rotationmatrix)
static double blender::bke::tests::test_vec_roll_to_mat3_normalized (const float input[3], float roll, const float expected_roll_mat[3][3], bool normalize=true)
static double blender::bke::tests::find_flip_boundary (double x, double z)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, FlippedBoundary1)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, FlippedBoundary2)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Flipped1)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Flipped2)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Flipped3)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Rotate90_Z_CW)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Rotate90_Z_CCW)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Rotate90_X_CW)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Rotate90_X_CCW)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Generic1)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Generic2)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Generic3)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Generic4)
 blender::bke::tests::TEST (vec_roll_to_mat3_normalized, Roll1)
static double blender::bke::tests::test_vec_roll_to_mat3_orthogonal (double s, double x, double z)
static void blender::bke::tests::test_vec_roll_to_mat3_orthogonal (double s, double x1, double x2, double y1, double y2)
 blender::bke::tests::TEST_F (BKE_armature_find_selected_bones_test, some_bones_selected)
 blender::bke::tests::TEST_F (BKE_armature_find_selected_bones_test, no_bones_selected)
 blender::bke::tests::TEST_F (BKE_armature_find_selected_bones_test, all_bones_selected)
 blender::bke::tests::TEST_F (ArmatureBoneIndexTest, armature_init_data)
 blender::bke::tests::TEST_F (ArmatureBoneIndexTest, armature_copy_data)
 blender::bke::tests::TEST_F (PoseBoneIndexTest, pose_bone_get)
 blender::bke::tests::TEST_F (PoseBoneIndexTest, reassign_armature_copy)
 blender::bke::tests::TEST_F (PoseBoneIndexTest, pose_rebuild_test)

Variables

static const float blender::bke::tests::FLOAT_EPSILON = 1.2e-7
static const float blender::bke::tests::SCALE_EPSILON = 3.71e-5
static const float blender::bke::tests::ORTHO_EPSILON = 5e-5

Macro Definition Documentation

◆ TEST_VEC_ROLL_TO_MAT3_ORTHOGONAL

#define TEST_VEC_ROLL_TO_MAT3_ORTHOGONAL ( name,
s,
x1,
x2,
y1,
y2 )
Value:
TEST(vec_roll_to_mat3_normalized, name) \
{ \
test_vec_roll_to_mat3_orthogonal(s, x1, x2, y1, y2); \
}
#define TEST(a, b)

Definition at line 337 of file armature_test.cc.