Blender V5.3
blender::bke::NativeFieldDomain Struct Reference

#include <BKE_geometry_fields.hh>

Classes

struct  None
struct  Domain
struct  Constant

Public Member Functions

 NativeFieldDomain (const None &)
 NativeFieldDomain (const Domain &domain)
 NativeFieldDomain (const Constant &)

Public Attributes

std::variant< None, Domain, Constant > variant

Detailed Description

Information about a field input's relationship with the domain of the data it represents.

If the native field domain is Point/Face, evaluating the field on the corner domain is identical to evaluating it on the native domain and copying the values to corners afterwards. If the native field domain is Curve, evaluating it on the point domain is identical to evaluating it on the curve domain and copying the values to the points afterwards. Of course, copying the values to the more complex domain can be skipped if the algorithm can be optimized to use the data directly from the smaller domain.

Definition at line 231 of file BKE_geometry_fields.hh.

Constructor & Destructor Documentation

◆ NativeFieldDomain() [1/3]

blender::bke::NativeFieldDomain::NativeFieldDomain ( const None & )
inline

Definition at line 247 of file BKE_geometry_fields.hh.

References variant.

Referenced by blender::bke::AttributeFieldInput::native_domain_info().

◆ NativeFieldDomain() [2/3]

blender::bke::NativeFieldDomain::NativeFieldDomain ( const Domain & domain)
inline

Definition at line 248 of file BKE_geometry_fields.hh.

References variant.

◆ NativeFieldDomain() [3/3]

blender::bke::NativeFieldDomain::NativeFieldDomain ( const Constant & )
inline

Definition at line 249 of file BKE_geometry_fields.hh.

References variant.

Member Data Documentation

◆ variant

std::variant<None, Domain, Constant> blender::bke::NativeFieldDomain::variant

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