feat(engine): add geometry class
This commit is contained in:
22
src/Engine/Operator/Geometry.h
Normal file
22
src/Engine/Operator/Geometry.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include "Engine/Operator/Attribute.h"
|
||||
#include "Engine/Types.h"
|
||||
#include <variant>
|
||||
|
||||
namespace enzo::geo
|
||||
{
|
||||
class Geometry
|
||||
{
|
||||
public:
|
||||
Geometry();
|
||||
ga::AttributeHandle<int> addIntAttribute(ga::AttributeOwner owner, std::string name);
|
||||
std::shared_ptr<ga::Attribute> getAttribByName(ga::AttributeOwner owner, std::string name);
|
||||
private:
|
||||
using attribVector = std::vector<std::shared_ptr<ga::Attribute>>;
|
||||
attribVector& getOwnerVector(ga::AttributeOwner& owner);
|
||||
attribVector pointAttributes_;
|
||||
attribVector vertexAttributes_;
|
||||
attribVector primitiveAttributes_;
|
||||
attribVector globalAttributes_;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user