feat: add geometryOpDef

This commit is contained in:
parker
2025-07-08 16:39:15 +01:00
parent 504eb58fe4
commit 0be6512d33
6 changed files with 101 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include "Engine/Operator/Geometry.h"
namespace enzo::nt
{
class GeometryOpDef
{
public:
GeometryOpDef();
void cookOp();
private:
std::vector<enzo::geo::Geometry> outputGeometry_;
unsigned int minInputs_;
unsigned int maxInputs_;
unsigned int maxOutputs_;
protected:
const enzo::geo::Geometry& getInputGeoView(unsigned int inputIndex);
enzo::geo::Geometry cloneInputGeo(unsigned int inputIndex);
bool outputRequested(unsigned int outputIndex);
void setOutputGeometry(unsigned int outputIndex, enzo::geo::Geometry geometry);
};
}