Blender V5.0
blender::bke::curves::nurbs::BasisCache Struct Reference

#include <BKE_curves.hh>

Public Attributes

Vector< floatweights
Vector< int > start_indices
bool invalid = false

Detailed Description

Definition at line 49 of file BKE_curves.hh.

Member Data Documentation

◆ invalid

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

The result of check_valid_eval_params, 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 66 of file BKE_curves.hh.

Referenced by blender::bke::curves::nurbs::interpolate_to_evaluated(), blender::draw::test_draw_curves_interpolate_attributes(), and blender::draw::test_draw_curves_interpolate_position().

◆ 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 59 of file BKE_curves.hh.

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

◆ 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 54 of file BKE_curves.hh.

Referenced by blender::bke::curves::nurbs::calculate_basis_cache(), blender::bke::tests::TEST(), blender::bke::tests::TEST(), blender::draw::test_draw_curves_interpolate_attributes(), and blender::draw::test_draw_curves_interpolate_position().


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