Blender V5.3
blender::bke::CurvesGeometryRuntime Class Reference

#include <BKE_curves.hh>

Classes

struct  EvaluatedOffsets

Public Attributes

const ImplicitSharingInfo * curve_offsets_sharing_info = nullptr
const ImplicitSharingInfo * custom_knots_sharing_info = nullptr
std::array< int, CURVE_TYPES_NUM > type_counts
SharedCache< EvaluatedOffsets > evaluated_offsets_cache
SharedCache< bool > has_cyclic_curve_cache
SharedCache< Vector< curves::nurbs::BasisCache > > nurbs_basis_cache
SharedCache< Vector< float3 > > evaluated_position_cache
SharedCache< Bounds< float3 > > bounds_cache
SharedCache< Bounds< float3 > > bounds_with_radius_cache
SharedCache< Vector< float > > evaluated_length_cache
SharedCache< Vector< float3 > > evaluated_tangent_cache
SharedCache< Vector< float3 > > evaluated_normal_cache
SharedCache< std::optional< int > > max_material_index_cache
SharedCache< Vector< int > > custom_knot_offsets_cache
std::unique_ptr< bake::BakeMaterialsList > bake_materials
bool check_type_counts = true

Detailed Description

Contains derived data, caches, and other information not saved in files.

Definition at line 75 of file BKE_curves.hh.

Member Data Documentation

◆ bake_materials

std::unique_ptr<bake::BakeMaterialsList> blender::bke::CurvesGeometryRuntime::bake_materials

Stores weak references to material data blocks.

Definition at line 140 of file BKE_curves.hh.

Referenced by blender::bke::CurvesGeometry::CurvesGeometry().

◆ bounds_cache

SharedCache<Bounds<float3> > blender::bke::CurvesGeometryRuntime::bounds_cache
mutable

A cache of bounds shared between data-blocks with unchanged positions. When data changes affect the bounds, the cache is "un-shared" with other geometries. See SharedCache comments.

Definition at line 114 of file BKE_curves.hh.

Referenced by blender::bke::CurvesGeometry::bounds_min_max(), blender::bke::CurvesGeometry::CurvesGeometry(), blender::bke::CurvesGeometry::tag_positions_changed(), and blender::bke::CurvesGeometry::translate().

◆ bounds_with_radius_cache

◆ check_type_counts

bool blender::bke::CurvesGeometryRuntime::check_type_counts = true

Type counts have to be set eagerly after each operation. It's checked with asserts that the type counts are correct when accessed. However, this check is expensive and shouldn't be done all the time because it makes debug builds unusable in some situations that would be fine otherwise.

Definition at line 148 of file BKE_curves.hh.

Referenced by blender::bke::CurvesGeometry::curve_type_counts(), and blender::bke::CurvesGeometry::tag_topology_changed().

◆ curve_offsets_sharing_info

◆ custom_knot_offsets_cache

SharedCache<Vector<int> > blender::bke::CurvesGeometryRuntime::custom_knot_offsets_cache
mutable

◆ custom_knots_sharing_info

◆ evaluated_length_cache

SharedCache<Vector<float> > blender::bke::CurvesGeometryRuntime::evaluated_length_cache
mutable

Cache of lengths along each evaluated curve for each evaluated point. If a curve is cyclic, it needs one more length value to correspond to the last segment, so in order to make slicing this array for a curve fast, an extra float is stored for every curve.

Definition at line 122 of file BKE_curves.hh.

Referenced by blender::bke::CurvesGeometry::CurvesGeometry(), blender::bke::CurvesGeometry::ensure_evaluated_lengths(), blender::bke::CurvesGeometry::evaluated_lengths_for_curve(), and blender::bke::CurvesGeometry::tag_positions_changed().

◆ evaluated_normal_cache

SharedCache<Vector<float3> > blender::bke::CurvesGeometryRuntime::evaluated_normal_cache
mutable

◆ evaluated_offsets_cache

◆ evaluated_position_cache

SharedCache<Vector<float3> > blender::bke::CurvesGeometryRuntime::evaluated_position_cache
mutable

Cache of evaluated positions for all curves. The positions span will be used directly rather than the cache when all curves are poly type.

Definition at line 107 of file BKE_curves.hh.

Referenced by blender::bke::CurvesGeometry::CurvesGeometry(), blender::bke::CurvesGeometry::evaluated_positions(), and blender::bke::CurvesGeometry::tag_positions_changed().

◆ evaluated_tangent_cache

SharedCache<Vector<float3> > blender::bke::CurvesGeometryRuntime::evaluated_tangent_cache
mutable

◆ has_cyclic_curve_cache

SharedCache<bool> blender::bke::CurvesGeometryRuntime::has_cyclic_curve_cache
mutable

◆ max_material_index_cache

SharedCache<std::optional<int> > blender::bke::CurvesGeometryRuntime::max_material_index_cache
mutable

◆ nurbs_basis_cache

◆ type_counts

std::array<int, CURVE_TYPES_NUM> blender::bke::CurvesGeometryRuntime::type_counts

The cached number of curves with each type. Unlike other caches here, this is not computed lazily, since it is needed so often and types are not adjusted much anyway.

Definition at line 87 of file BKE_curves.hh.

Referenced by blender::bke::curves::copy_only_curve_domain(), blender::bke::CurvesGeometry::curve_type_counts(), blender::bke::CurvesGeometry::CurvesGeometry(), blender::bke::CurvesGeometry::CurvesGeometry(), blender::bke::CurvesGeometry::fill_curve_types(), and blender::bke::CurvesGeometry::update_curve_types().


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