Blender  V3.3
Public Attributes | List of all members
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 41 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 58 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 51 of file BKE_curves.hh.

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

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

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


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