10 template <
typename T,
int Dim>
14 , m_attribute(mesh().m_attribute_manager.get(m_handle).attribute(m_handle.m_base_handle))
16 template <
typename T,
int Dim>
22 template <
typename T,
int Dim>
27 template <
typename T,
int Dim>
33 template <
typename T,
int Dim>
36 return mesh().m_attribute_manager;
39 template <
typename T,
int Dim>
42 return mesh().m_attribute_manager;
46 template <
typename T,
int Dim>
50 template <
typename T,
int Dim>
53 return attribute().reserved_size();
56 template <
typename T,
int Dim>
59 return attribute().dimension();
62 template <
typename T,
int Dim>
65 return attribute().default_value();
68 template <
typename T,
int Dim>
71 return attribute_manager().get(m_handle);
73 template <
typename T,
int Dim>
76 return attribute_manager().get(m_handle);
78 template <
typename T,
int Dim>
83 template <
typename T,
int Dim>
88 template <
typename T,
int Dim>
93 template <
typename T,
int Dim>
99 template <
typename T,
int Dim>
102 return handle().primitive_type();
105 template <
typename T,
int Dim>
110 auto buffer = attribute().template const_vector_attribute<D>(index);
114 template <
typename T,
int Dim>
118 auto& attr = attribute();
119 auto buffer = attr.template vector_attribute<D>(index);
124 template <
typename T,
int Dim>
127 auto value = attribute().const_scalar_attribute(index);
130 template <
typename T,
int Dim>
133 auto& value = attribute().scalar_attribute(index);
137 template <
typename T,
int Dim>
141 auto value = attribute().const_scalar_attribute(index, offset);
144 template <
typename T,
int Dim>
147 auto& value = attribute().scalar_attribute(index, offset);
151 template <
typename T,
int Dim>
154 attribute().set(std::move(value));
T const_scalar_attribute(const int64_t index) const
const T & default_value() const
MeshAttributes< T > & attributes()
AccessorBase(Mesh &m, const TypedAttributeHandle< T > &handle)
const TypedAttributeHandle< T > & typed_handle() const
MeshAttributeHandle handle() const
internal::ConstMapResult< T, D > ConstMapResult
ConstMapResult< D > const_vector_attribute(const int64_t index) const
const AttributeManager & attribute_manager() const
PrimitiveType primitive_type() const
void set_attribute(std::vector< T > value)
int64_t dimension() const
Attribute< T > & attribute()
T & scalar_attribute(const int64_t index)
MapResult< D > vector_attribute(const int64_t index)
int64_t reserved_size() const
internal::MapResult< T, D > MapResult
This class stores data of type T in a vector.
Contains all attributes of type T for a single mesh.
Handle that represents attributes for some mesh.