// * TYPE is the C++ type of the input/output
// (the one provided in the attribute 'type' of the tag 'input')
std::vector<double> lstCenter = bbGetInputCenter();
- double s = bbGetInputS();
- bool ok = false;
- bool pdChanged = false;
- using MeshType = itk::QuadEdgeMesh<double, 3>;
+ double s = bbGetInputS();
+ bool ok = false;
+ bool pdChanged = false;
+ using MeshType = itk::QuadEdgeMesh<double, 3>;
//Set up QuadEdge and filter every time polydata changes
if ((bbGetInputIn() != polydata) && (bbGetInputActive()==true) && (bbGetInputIn() != NULL))
double p[3]; // point
double pb[3]; // point base
double np[3]; // new point
- double sx,sy,sz;
- sx = s*2;
- sy = sx;
- sz = sy;
+// double sx,sy,sz;
+// sx = s*2;
+// sy = s*2;
+// sz = s*2;
double displcement_x = 0;
double displcement_y = 0;
using CriterionType = itk::FastMarchingThresholdStoppingCriterion<MeshType, MeshType>;
auto criterion = CriterionType::New();
sCurrent = s;
- criterion->SetThreshold(s*2);
+ criterion->SetThreshold(s*4);
fmmFilter->SetStoppingCriterion(criterion);
}
fmmFilter->Update();