Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ef9f0634 authored by PATTE Cecile's avatar PATTE Cecile
Browse files

SetInputData() of probe_filter in init_disp instead of eval in order to make things faster

parent 7404729a
1 merge request!2Add the case where the image is deformed and the displacement comes from a vtu file
......@@ -115,6 +115,8 @@ public:
probe_filter->SetSourceData(mesh);
probe_points->SetNumberOfPoints(1);
probe_polydata->SetPoints(probe_points);
probe_filter->SetInputData(probe_polydata);
}''')*(u_is_vtk))*(im_is_def)+'''
void init_image(
......@@ -172,8 +174,6 @@ public:
U->eval(UX, X);''')*(not u_is_vtk)+('''
probe_points->SetPoint(0,X.data());
probe_polydata->SetPoints(probe_points);
probe_filter->SetInputData(probe_polydata);
probe_filter->Update();
probe_filter->GetOutput()->GetPointData()->GetArray("U")->GetTuple(0, UX.data());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment