Blender V4.3
blender::geometry::RealizeCurveInfo Struct Reference

Public Attributes

const Curvescurves
 
Array< std::optional< GVArraySpan > > attributes
 
Span< intstored_ids
 
Span< float3handle_left
 
Span< float3handle_right
 
Span< floatradius
 
VArray< intresolution
 
Span< floatnurbs_weight
 
Span< float3custom_normal
 

Detailed Description

Definition at line 123 of file realize_instances.cc.

Member Data Documentation

◆ attributes

Array<std::optional<GVArraySpan> > blender::geometry::RealizeCurveInfo::attributes

Matches the order in AllCurvesInfo.attributes.

Definition at line 128 of file realize_instances.cc.

Referenced by blender::geometry::preprocess_curves().

◆ curves

◆ custom_normal

Span<float3> blender::geometry::RealizeCurveInfo::custom_normal

Custom normals are rotated based on each instance's transformation.

Definition at line 160 of file realize_instances.cc.

Referenced by blender::geometry::execute_realize_curve_task(), and blender::geometry::preprocess_curves().

◆ handle_left

Span<float3> blender::geometry::RealizeCurveInfo::handle_left

Handle position attributes must be transformed along with positions. Accessing them in advance isn't necessary theoretically, but is done to simplify other code and to avoid some overhead.

Definition at line 138 of file realize_instances.cc.

Referenced by blender::geometry::execute_realize_curve_task(), and blender::geometry::preprocess_curves().

◆ handle_right

Span<float3> blender::geometry::RealizeCurveInfo::handle_right

◆ nurbs_weight

Span<float> blender::geometry::RealizeCurveInfo::nurbs_weight

The resolution attribute must be filled with the default value if it does not exist on some curves.

Definition at line 157 of file realize_instances.cc.

Referenced by blender::geometry::execute_realize_curve_task(), and blender::geometry::preprocess_curves().

◆ radius

Span<float> blender::geometry::RealizeCurveInfo::radius

The radius attribute must be filled with a default of 1.0 if it doesn't exist on some (but not all) of the input curves data-blocks.

Definition at line 145 of file realize_instances.cc.

Referenced by blender::geometry::execute_realize_curve_task(), and blender::geometry::preprocess_curves().

◆ resolution

VArray<int> blender::geometry::RealizeCurveInfo::resolution

The resolution attribute must be filled with the default value if it does not exist on some curves.

Definition at line 151 of file realize_instances.cc.

Referenced by blender::geometry::execute_realize_curve_task(), and blender::geometry::preprocess_curves().

◆ stored_ids

Span<int> blender::geometry::RealizeCurveInfo::stored_ids

ID attribute on the curves. If there are no ids, this #Span is empty.

Definition at line 131 of file realize_instances.cc.

Referenced by blender::geometry::preprocess_curves().


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