|
Blender
V2.93
|
Inherits blender::bke::BuiltinAttributeProvider.
Public Member Functions | |
| NormalAttributeProvider () | |
| ReadAttributePtr | try_get_for_read (const GeometryComponent &component) const final |
| WriteAttributePtr | try_get_for_write (GeometryComponent &UNUSED(component)) const final |
| bool | try_delete (GeometryComponent &UNUSED(component)) const final |
| bool | try_create (GeometryComponent &UNUSED(component)) const final |
| bool | exists (const GeometryComponent &component) const final |
Public Member Functions inherited from blender::bke::BuiltinAttributeProvider | |
| BuiltinAttributeProvider (std::string name, const AttributeDomain domain, const CustomDataType data_type, const CreatableEnum createable, const WritableEnum writable, const DeletableEnum deletable) | |
| virtual WriteAttributePtr | try_get_for_write (GeometryComponent &component) const =0 |
| virtual bool | try_delete (GeometryComponent &component) const =0 |
| StringRefNull | name () const |
| AttributeDomain | domain () const |
| CustomDataType | data_type () const |
Additional Inherited Members | |
Public Types inherited from blender::bke::BuiltinAttributeProvider | |
| enum | CreatableEnum { Creatable , NonCreatable } |
| enum | WritableEnum { Writable , Readonly } |
| enum | DeletableEnum { Deletable , NonDeletable } |
Protected Attributes inherited from blender::bke::BuiltinAttributeProvider | |
| const std::string | name_ |
| const AttributeDomain | domain_ |
| const CustomDataType | data_type_ |
| const CreatableEnum | createable_ |
| const WritableEnum | writable_ |
| const DeletableEnum | deletable_ |
This provider makes face normals available as a read-only float3 attribute.
Definition at line 1004 of file geometry_component_mesh.cc.
|
inline |
Definition at line 1006 of file geometry_component_mesh.cc.
|
inlinefinalvirtual |
Implements blender::bke::BuiltinAttributeProvider.
Definition at line 1053 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_FACE, and component().
|
inlinefinalvirtual |
Implements blender::bke::BuiltinAttributeProvider.
Definition at line 1048 of file geometry_component_mesh.cc.
|
inlinefinal |
Definition at line 1043 of file geometry_component_mesh.cc.
|
inlinefinalvirtual |
Implements blender::bke::BuiltinAttributeProvider.
Definition at line 1012 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_FACE, BKE_mesh_calc_poly_normal(), Mesh_Runtime::cd_dirty_poly, CD_MASK_NORMAL, CD_NORMAL, component(), CustomData_get_layer(), CustomData_has_layer(), data, MeshComponent::get_for_read(), MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, Mesh::mvert, normals, Mesh::runtime, and Mesh::totpoly.
|
inlinefinal |
Definition at line 1038 of file geometry_component_mesh.cc.