Blender  V2.93
Classes | Functions | Variables
blender::bke::tests Namespace Reference

Classes

struct  LatticeDeformTestContext
 

Functions

 TEST (mat3_vec_to_roll, UnitMatrix)
 
 TEST (mat3_vec_to_roll, Rotationmatrix)
 
 TEST (vec_roll_to_mat3_normalized, Rotationmatrix)
 
 TEST (evaluate_fcurve, EmptyFCurve)
 
 TEST (evaluate_fcurve, OnKeys)
 
 TEST (evaluate_fcurve, InterpolationConstant)
 
 TEST (evaluate_fcurve, InterpolationLinear)
 
 TEST (evaluate_fcurve, InterpolationBezier)
 
 TEST (evaluate_fcurve, InterpolationBounce)
 
 TEST (evaluate_fcurve, ExtrapolationLinearKeys)
 
 TEST (evaluate_fcurve, ExtrapolationBezierKeys)
 
 TEST (fcurve_subdivide, BKE_fcurve_bezt_subdivide_handles)
 
 TEST (fcurve_active_keyframe, ActiveKeyframe)
 
 TEST (BKE_fcurve, BKE_fcurve_keyframe_move_value_with_handles)
 
static void test_lattice_deform_init (LatticeDeformTestContext *ctx, RandomNumberGenerator *rng, int32_t num_items)
 
static void test_lattice_deform (LatticeDeformTestContext *ctx, int32_t num_items)
 
static void test_lattice_deform_free (LatticeDeformTestContext *ctx)
 
 TEST (lattice_deform_performance, performance_no_dvert_1)
 
 TEST (lattice_deform_performance, performance_no_dvert_1000)
 
 TEST (lattice_deform_performance, performance_no_dvert_10000)
 
 TEST (lattice_deform_performance, performance_no_dvert_100000)
 
 TEST (lattice_deform_performance, performance_no_dvert_1000000)
 
 TEST (lattice_deform_performance, performance_no_dvert_10000000)
 
 TEST (view_layer, aov_unique_names)
 
static void test_render_pass_conflict (Scene *scene, RenderEngine *engine, ViewLayer *view_layer, ViewLayerAOV *aov, const char *render_pass_name, const char *rna_prop_name)
 
 TEST (view_layer, aov_conflict)
 

Variables

static const float FLOAT_EPSILON = 1.2e-7
 
static const float EPSILON = 1e-7f
 

Function Documentation

◆ TEST() [1/22]

blender::bke::tests::TEST ( BKE_fcurve  ,
BKE_fcurve_keyframe_move_value_with_handles   
)

◆ TEST() [2/22]

blender::bke::tests::TEST ( evaluate_fcurve  ,
EmptyFCurve   
)

Definition at line 34 of file fcurve_test.cc.

References BKE_fcurve_create(), BKE_fcurve_free(), evaluate_fcurve(), and EXPECT_EQ().

◆ TEST() [3/22]

blender::bke::tests::TEST ( evaluate_fcurve  ,
ExtrapolationBezierKeys   
)

◆ TEST() [4/22]

blender::bke::tests::TEST ( evaluate_fcurve  ,
ExtrapolationLinearKeys   
)

◆ TEST() [5/22]

blender::bke::tests::TEST ( evaluate_fcurve  ,
InterpolationBezier   
)

◆ TEST() [6/22]

blender::bke::tests::TEST ( evaluate_fcurve  ,
InterpolationBounce   
)

◆ TEST() [7/22]

blender::bke::tests::TEST ( evaluate_fcurve  ,
InterpolationConstant   
)

◆ TEST() [8/22]

blender::bke::tests::TEST ( evaluate_fcurve  ,
InterpolationLinear   
)

◆ TEST() [9/22]

blender::bke::tests::TEST ( evaluate_fcurve  ,
OnKeys   
)

◆ TEST() [10/22]

blender::bke::tests::TEST ( fcurve_active_keyframe  ,
ActiveKeyframe   
)

◆ TEST() [11/22]

blender::bke::tests::TEST ( fcurve_subdivide  ,
BKE_fcurve_bezt_subdivide_handles   
)

◆ TEST() [12/22]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_1   
)

◆ TEST() [13/22]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_1000   
)

◆ TEST() [14/22]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_10000   
)

◆ TEST() [15/22]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_100000   
)

◆ TEST() [16/22]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_1000000   
)

◆ TEST() [17/22]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_10000000   
)

◆ TEST() [18/22]

blender::bke::tests::TEST ( mat3_vec_to_roll  ,
Rotationmatrix   
)

Definition at line 60 of file armature_test.cc.

References eul_to_mat3(), FLOAT_EPSILON, and mat3_vec_to_roll().

◆ TEST() [19/22]

blender::bke::tests::TEST ( mat3_vec_to_roll  ,
UnitMatrix   
)

Definition at line 30 of file armature_test.cc.

References FLOAT_EPSILON, mat3_vec_to_roll(), normalize_v3(), and unit_m3().

◆ TEST() [20/22]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Rotationmatrix   
)

Definition at line 93 of file armature_test.cc.

References e, normalize_v3_v3(), unit_m3(), and vec_roll_to_mat3_normalized().

◆ TEST() [21/22]

blender::bke::tests::TEST ( view_layer  ,
aov_conflict   
)

◆ TEST() [22/22]

blender::bke::tests::TEST ( view_layer  ,
aov_unique_names   
)

◆ test_lattice_deform()

static void blender::bke::tests::test_lattice_deform ( LatticeDeformTestContext ctx,
int32_t  num_items 
)
static

◆ test_lattice_deform_free()

static void blender::bke::tests::test_lattice_deform_free ( LatticeDeformTestContext ctx)
static

◆ test_lattice_deform_init()

static void blender::bke::tests::test_lattice_deform_init ( LatticeDeformTestContext ctx,
RandomNumberGenerator rng,
int32_t  num_items 
)
static

◆ test_render_pass_conflict()

static void blender::bke::tests::test_render_pass_conflict ( Scene scene,
RenderEngine engine,
ViewLayer view_layer,
ViewLayerAOV aov,
const char *  render_pass_name,
const char *  rna_prop_name 
)
static

Variable Documentation

◆ EPSILON

const float blender::bke::tests::EPSILON = 1e-7f
static

Definition at line 32 of file fcurve_test.cc.

Referenced by TEST().

◆ FLOAT_EPSILON

const float blender::bke::tests::FLOAT_EPSILON = 1.2e-7
static

Definition at line 28 of file armature_test.cc.

Referenced by TEST().