feat: pass node info with template

This commit is contained in:
parker
2025-07-23 14:06:57 +01:00
parent c5f2dec008
commit b2afebd883
17 changed files with 151 additions and 70 deletions

View File

@@ -23,8 +23,8 @@ void enzo::nt::connectOperators(enzo::nt::OpId inputOpId, unsigned int inputInde
outputOp.addInputConnection(newConnection);
}
nt::GeometryOperator::GeometryOperator(enzo::nt::OpId opId, nt::opConstructor ctorFunc)
: opId_{opId}, opDef_(ctorFunc(opId))
nt::GeometryOperator::GeometryOperator(enzo::nt::OpId opId, op::OpInfo opinfo)
: opId_{opId}, opDef_(opinfo.ctorFunc(opId))
{
// TODO: drive by geometry definition
maxInputs_=4;