|
Blender V5.0
|
Inherits testing::Test.
Public Types | |
| enum class | TestCurveShape { Zero , Circle , Eight , Helix } |
Public Member Functions | |
| void | test_sample_curve (const bke::CurvesGeometry &curves, const int curve_index, const bool reverse, const Span< int > expected_indices, const Span< float > expected_factors, const float threshold=1e-4f) |
Static Public Member Functions | |
| static void | create_test_shape (const TestCurveShape shape, MutableSpan< float3 > positions) |
| static bke::CurvesGeometry | create_test_curves (Span< int > offsets, Span< bool > cyclic, TestCurveShape shape) |
Definition at line 17 of file GEO_interpolate_curves_test.cc.
|
strong |
| Enumerator | |
|---|---|
| Zero | |
| Circle | |
| Eight | |
| Helix | |
Definition at line 19 of file GEO_interpolate_curves_test.cc.
|
inlinestatic |
Definition at line 57 of file GEO_interpolate_curves_test.cc.
References BLI_assert, create_test_shape(), blender::array_utils::fill_index_range(), blender::bke::SpanAttributeWriter< T >::finish(), blender::Span< T >::is_empty(), blender::Span< T >::last(), blender::bke::Point, blender::Span< T >::size(), blender::MutableSpan< T >::slice(), and blender::bke::SpanAttributeWriter< T >::span.
|
inlinestatic |
Definition at line 26 of file GEO_interpolate_curves_test.cc.
References angle(), Circle, blender::math::cos(), Eight, blender::MutableSpan< T >::fill(), float, Helix, blender::MutableSpan< T >::index_range(), M_PI, blender::math::sin(), blender::MutableSpan< T >::size(), and Zero.
Referenced by create_test_curves().
|
inline |
Definition at line 86 of file GEO_interpolate_curves_test.cc.
References BLI_assert, EXPECT_EQ(), i, blender::Span< T >::index_range(), indices, blender::geometry::sample_curve_padded(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), and blender::Span< T >::size().