3#include "Engine/Operator/Attribute.h"
13 if (attribute.
getType() == ga::AttrType::vectorT) {
14 mat_ = bt::Matrix4::Identity();
15 mat_.col(3).head<3>() = attribute.getVector3(offset);
18 }
else if (attribute.
getType() == ga::AttrType::matrixT) {
19 mat_ = attribute.getMatrix4(offset);
23 mat_ = bt::Matrix4::Identity();
27 const bt::Matrix4 &getMatrix()
const {
return mat_; }
Basic attribute, parameter, and node types for Enzo.
size_t Offset
ga::Offset is the index of an element in a given AttributeOwner.
Definition Types.h:43
Containers for geometry data.
AttributeType getType() const
Returns the attribute type this attribute stores.
Definition Attribute.cpp:140