Blender V4.3
blender::bke::curves::nurbs::BasisCache Struct Reference

#include <BKE_curves.hh>

Public Attributes

Vector< floatweights
 
Vector< intstart_indices
 
bool invalid = false
 

Detailed Description

Definition at line 44 of file BKE_curves.hh.

Member Data Documentation

◆ invalid

bool blender::bke::curves::nurbs::BasisCache::invalid = false

The result of check_valid_num_and_order, to avoid retrieving its inputs later on. If this is true, the data above will be invalid, and original data should be copied to the evaluated result.

Definition at line 61 of file BKE_curves.hh.

Referenced by blender::bke::curves::nurbs::interpolate_to_evaluated().

◆ start_indices

Vector<int> blender::bke::curves::nurbs::BasisCache::start_indices

For each evaluated point, an offset into the curve's control points for the start of weights. In other words, the index of the first control point that influences this evaluated point.

Definition at line 54 of file BKE_curves.hh.

Referenced by blender::bke::curves::nurbs::calculate_basis_cache(), and blender::bke::curves::nurbs::interpolate_to_evaluated().

◆ weights

Vector<float> blender::bke::curves::nurbs::BasisCache::weights

For each evaluated point, the weight for all control points that influences it. The vector's size is the evaluated point count multiplied by the curve's order.

Definition at line 49 of file BKE_curves.hh.

Referenced by blender::bke::curves::nurbs::calculate_basis_cache().


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