Blender  V3.3
Classes | Namespaces | Functions
BLI_length_parameterize.hh File Reference
#include "BLI_index_mask.hh"
#include "BLI_math_base.hh"
#include "BLI_math_color.hh"
#include "BLI_math_vector.hh"

Go to the source code of this file.

Classes

struct  blender::length_parameterize::SampleSegmentHint
 

Namespaces

 blender
 
 blender::length_parameterize
 

Functions

int blender::length_parameterize::segments_num (const int points_num, const bool cyclic)
 
template<typename T >
void blender::length_parameterize::accumulate_lengths (const Span< T > values, const bool cyclic, MutableSpan< float > lengths)
 
template<typename T >
void blender::length_parameterize::interpolate_to_masked (const Span< T > src, const Span< int > indices, const Span< float > factors, const IndexMask dst_mask, MutableSpan< T > dst)
 
template<typename T >
void blender::length_parameterize::interpolate (const Span< T > src, const Span< int > indices, const Span< float > factors, MutableSpan< T > dst)
 
void blender::length_parameterize::sample_at_length (const Span< float > accumulated_segment_lengths, const float sample_length, int &r_segment_index, float &r_factor, SampleSegmentHint *hint=nullptr)
 
void blender::length_parameterize::sample_uniform (Span< float > accumulated_segment_lengths, bool include_last_point, MutableSpan< int > r_segment_indices, MutableSpan< float > r_factors)
 
void blender::length_parameterize::sample_at_lengths (Span< float > accumulated_segment_lengths, Span< float > sample_lengths, MutableSpan< int > r_segment_indices, MutableSpan< float > r_factors)