bool ok = false;
bool pdChanged = false;
using MeshType = itk::QuadEdgeMesh<double, 3>;
+ std::vector<double> deformInfo;
+ bbSetOutputOut(deformInfo);
//Set up QuadEdge and filter every time polydata changes
if ((bbGetInputIn() != polydata) && (bbGetInputActive()==true) && (bbGetInputIn() != NULL))
displcement_z = bbGetInputDirection()[2];
} // if TypeIn 0 Direction
- printf(" EED GeodesicMeshDeformation::Process %ld %ld - %f %f %f \n", EdgeIdBack, bbGetInputEdgeId() , lstCenter[0],lstCenter[1],lstCenter[2] );
+ //printf(" EED GeodesicMeshDeformation::Process %ld %ld - %f %f %f \n", EdgeIdBack, bbGetInputEdgeId() , lstCenter[0],lstCenter[1],lstCenter[2] );
if (bbGetInputTypeIn()==1) // Center
{
points->SetPoint(BegProcessedIt.Value().GetNode(), np);
}
++BegProcessedIt;
- }
+ }
+ std::vector<double> info{pb[0],pb[1],pb[2], (double) bbGetInputEdgeId(), s};
+ bbSetOutputOut(info);
+ cout << "info updated" << endl;
points->Modified();
- bbGetInputIn()->Modified();
+ bbGetInputIn()->Modified();
}// if ffmFilter != NULL
} // if distance_x y z != 0
} // In != NULL ok active
EdgeIdBack=-1;
bbSetInputEdgeId(EdgeIdBack);
bbSetInputS(10);
+ std::vector<double> OutputVect;
+ bbSetOutputOut(OutputVect);
backLstCenter.push_back(0);
backLstCenter.push_back(0);
BBTK_DECLARE_INPUT(S, double);
BBTK_DECLARE_INPUT(Center, std::vector<double>);
BBTK_DECLARE_INPUT(Direction, std::vector<double>);
- //BBTK_DECLARE_OUTPUT(Out,double);
+ BBTK_DECLARE_OUTPUT(Out, std::vector<double>);
BBTK_PROCESS(Process);
void Process();
BBTK_INPUT(GeodesicMeshDeformation,S,"Deformation",double,"");
BBTK_INPUT(GeodesicMeshDeformation,Center,"[X,Y,Z]",std::vector<double>,"");
BBTK_INPUT(GeodesicMeshDeformation,Direction,"(default [1,0,0]) [X,Y,Z]",std::vector<double>,"");
+BBTK_OUTPUT(GeodesicMeshDeformation,Out,"double vector output, for output information for other tools",std::vector<double>,"");
BBTK_END_DESCRIBE_BLACK_BOX(GeodesicMeshDeformation);
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)