|
Blender V5.0
|
Functions | |
| static bke::CurvesGeometry | create_curves (const Span< Vector< float3 > > all_positions, const int order, const Set< int > &is_cyclic) |
| static bke::CurvesGeometry | create_curves (const Vector< float3 > positions, const int order, const Set< int > &is_cyclic) |
| static void | validate_positions (const Span< Vector< float3 > > expected_positions, const OffsetIndices< int > points_by_curve, const Span< float3 > positions) |
| TEST (curves_editors, DuplicatePointsTwoSingle) | |
| TEST (curves_editors, DuplicatePointsFourThree) | |
| TEST (curves_editors, DuplicatePointsTwoCyclic) | |
| TEST (curves_editors, SplitPointsTwoSingle) | |
| TEST (curves_editors, SplitPointsFourThree) | |
| TEST (curves_editors, SplitPointsTwoCyclic) | |
| TEST (curves_editors, SplitPointsTwoTouchCyclic) | |
| TEST (curves_editors, SplitEverySecondCyclic) | |
| TEST (curves_editors, SplitAllSelectedButFirstCyclic) | |
| TEST (curves_editors, SplitTwoOnSeamAndExtraCyclic) | |
|
static |
Definition at line 15 of file curves_edit_test.cc.
References blender::MutableSpan< T >::copy_from(), is_cyclic(), blender::Array< T, InlineBufferCapacity, Allocator >::last(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::MutableSpan< T >::slice().
Referenced by create_curves(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
static |
Definition at line 43 of file curves_edit_test.cc.
References create_curves(), and is_cyclic().
| blender::ed::curves::tests::TEST | ( | curves_editors | , |
| DuplicatePointsFourThree | ) |
Definition at line 86 of file curves_edit_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), create_curves(), blender::ed::curves::duplicate_points(), blender::IndexMask::from_indices(), blender::Span< T >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), mask(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
| blender::ed::curves::tests::TEST | ( | curves_editors | , |
| DuplicatePointsTwoCyclic | ) |
Definition at line 119 of file curves_edit_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), create_curves(), blender::ed::curves::duplicate_points(), blender::IndexMask::from_indices(), blender::Span< T >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), mask(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
| blender::ed::curves::tests::TEST | ( | curves_editors | , |
| DuplicatePointsTwoSingle | ) |
Definition at line 63 of file curves_edit_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), create_curves(), blender::ed::curves::duplicate_points(), blender::IndexMask::from_indices(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), and mask().
| blender::ed::curves::tests::TEST | ( | curves_editors | , |
| SplitAllSelectedButFirstCyclic | ) |
Definition at line 287 of file curves_edit_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), create_curves(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::cyclic(), EXPECT_EQ(), blender::IndexMask::from_indices(), mask(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::ed::curves::split_points(), and validate_positions().
| blender::ed::curves::tests::TEST | ( | curves_editors | , |
| SplitEverySecondCyclic | ) |
Definition at line 251 of file curves_edit_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), create_curves(), blender::bke::CurvesGeometry::curves_num(), blender::IndexMask::from_indices(), mask(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::ed::curves::split_points(), and validate_positions().
| blender::ed::curves::tests::TEST | ( | curves_editors | , |
| SplitPointsFourThree | ) |
Definition at line 169 of file curves_edit_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), create_curves(), blender::bke::CurvesGeometry::curves_num(), blender::IndexMask::from_indices(), mask(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::ed::curves::split_points(), and validate_positions().
| blender::ed::curves::tests::TEST | ( | curves_editors | , |
| SplitPointsTwoCyclic | ) |
Definition at line 194 of file curves_edit_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), create_curves(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::cyclic(), EXPECT_EQ(), blender::IndexMask::from_indices(), i, blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), mask(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::ed::curves::split_points(), and validate_positions().
| blender::ed::curves::tests::TEST | ( | curves_editors | , |
| SplitPointsTwoSingle | ) |
Definition at line 151 of file curves_edit_test.cc.
References create_curves(), blender::IndexMask::from_indices(), mask(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::ed::curves::split_points(), and validate_positions().
| blender::ed::curves::tests::TEST | ( | curves_editors | , |
| SplitPointsTwoTouchCyclic | ) |
Definition at line 225 of file curves_edit_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), create_curves(), blender::bke::CurvesGeometry::curves_num(), blender::IndexMask::from_indices(), mask(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::ed::curves::split_points(), and validate_positions().
| blender::ed::curves::tests::TEST | ( | curves_editors | , |
| SplitTwoOnSeamAndExtraCyclic | ) |
Definition at line 319 of file curves_edit_test.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), create_curves(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::cyclic(), blender::IndexMask::from_indices(), mask(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::ed::curves::split_points(), and validate_positions().
|
static |
Definition at line 50 of file curves_edit_test.cc.
References EXPECT_EQ(), and blender::Span< T >::index_range().
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().