Blender V5.0
blender::bke::tests::GreasePencilInterpolate Class Reference

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)

Detailed Description

Definition at line 17 of file GEO_interpolate_curves_test.cc.

Member Enumeration Documentation

◆ TestCurveShape

Enumerator
Zero 
Circle 
Eight 
Helix 

Definition at line 19 of file GEO_interpolate_curves_test.cc.

Member Function Documentation

◆ create_test_curves()

◆ create_test_shape()

void blender::bke::tests::GreasePencilInterpolate::create_test_shape ( const TestCurveShape shape,
MutableSpan< float3 > positions )
inlinestatic

◆ 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

The documentation for this class was generated from the following file: