Blender V5.3
curves::catmull_rom Namespace Reference

Functions

float4 calculate_basis (const float parameter)
int4 get_points (uint point_id, IndexRange points, const bool cyclic)
template<typename StorageT, typename AttrT>
void evaluate_curve (const CurvesData &srt, AttribBuf< StorageT, AttrT > &attr, const IndexRange points, const IndexRange evaluated_points, const int curve_index)
template void evaluate_curve< InterpPosition, float4 > (const CurvesData &, AttribBuf< InterpPosition, float4 > &, IndexRange, IndexRange, int)
template void evaluate_curve< StoredFloat, float > (const CurvesData &, AttribBuf< StoredFloat, float > &, IndexRange, IndexRange, int)
template void evaluate_curve< StoredFloat2, float2 > (const CurvesData &, AttribBuf< StoredFloat2, float2 > &, IndexRange, IndexRange, int)
template void evaluate_curve< StoredFloat3, float3 > (const CurvesData &, AttribBuf< StoredFloat3, float3 > &, IndexRange, IndexRange, int)
template void evaluate_curve< StoredFloat4, float4 > (const CurvesData &, AttribBuf< StoredFloat4, float4 > &, IndexRange, IndexRange, int)

Detailed Description

Utilities.

Function Documentation

◆ calculate_basis()

float4 curves::catmull_rom::calculate_basis ( const float parameter)

Definition at line 192 of file draw_curves_interpolation.bsl.hh.

References calculate_basis().

Referenced by calculate_basis(), and evaluate_curve().

◆ evaluate_curve()

template<typename StorageT, typename AttrT>
void curves::catmull_rom::evaluate_curve ( const CurvesData & srt,
AttribBuf< StorageT, AttrT > & attr,
const IndexRange points,
const IndexRange evaluated_points,
const int curve_index )

◆ evaluate_curve< InterpPosition, float4 >()

template void curves::catmull_rom::evaluate_curve< InterpPosition, float4 > ( const CurvesData & ,
AttribBuf< InterpPosition, float4 > & ,
IndexRange ,
IndexRange ,
int  )

References evaluate_curve().

◆ evaluate_curve< StoredFloat, float >()

template void curves::catmull_rom::evaluate_curve< StoredFloat, float > ( const CurvesData & ,
AttribBuf< StoredFloat, float > & ,
IndexRange ,
IndexRange ,
int  )

References evaluate_curve().

◆ evaluate_curve< StoredFloat2, float2 >()

template void curves::catmull_rom::evaluate_curve< StoredFloat2, float2 > ( const CurvesData & ,
AttribBuf< StoredFloat2, float2 > & ,
IndexRange ,
IndexRange ,
int  )

References evaluate_curve().

◆ evaluate_curve< StoredFloat3, float3 >()

template void curves::catmull_rom::evaluate_curve< StoredFloat3, float3 > ( const CurvesData & ,
AttribBuf< StoredFloat3, float3 > & ,
IndexRange ,
IndexRange ,
int  )

References evaluate_curve().

◆ evaluate_curve< StoredFloat4, float4 >()

template void curves::catmull_rom::evaluate_curve< StoredFloat4, float4 > ( const CurvesData & ,
AttribBuf< StoredFloat4, float4 > & ,
IndexRange ,
IndexRange ,
int  )

References evaluate_curve().

◆ get_points()

int4 curves::catmull_rom::get_points ( uint point_id,
IndexRange points,
const bool cyclic )

Definition at line 203 of file draw_curves_interpolation.bsl.hh.

References clamp(), and get_points().

Referenced by evaluate_curve(), and get_points().