Inherits blender::bke::BlenderGTestBase.
◆ TestCurveShape
◆ create_test_curves()
◆ create_test_shape()
Definition at line 25 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().
◆ test_sample_curve()
| void blender::bke::tests::GreasePencilInterpolate::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 ) |
|
inline |
Definition at line 85 of file GEO_interpolate_curves_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BLI_assert(), blender::EXPECT_EQ(), EXPECT_NEAR, blender::Span< T >::index_range(), blender::geometry::sample_curve_padded(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), and blender::Span< T >::size().
The documentation for this class was generated from the following file: