using MeshType = itk::QuadEdgeMesh<double, 3>;
std::vector<double> deformInfo;
bbSetOutputOut(deformInfo);
+ //std::vector<double> displacementVector;
//Set up QuadEdge and filter every time polydata changes
if ((bbGetInputIn() != polydata) && (bbGetInputActive()==true) && (bbGetInputIn() != NULL))
points->SetPoint(BegProcessedIt.Value().GetNode(), np);
}
++BegProcessedIt;
- }
- std::vector<double> info{pb[0],pb[1],pb[2], (double) bbGetInputEdgeId(), s};
+ }
+ //double directionMoved[3] = {lstCenter[0]-displcement_x, lstCenter[1]-displcement_y, lstCenter[2]-displcement_z};
+ //vtkMath::Normalize(directionMoved);
+ std::vector<double> info{lstCenter[0],lstCenter[1],lstCenter[2], bbGetInputDirection()[0] , bbGetInputDirection()[1], bbGetInputDirection()[2],(double) bbGetInputEdgeId(), s};
bbSetOutputOut(info);
cout << "info updated" << endl;
points->Modified();