- for(int anId = 0; anId < aNbElem; anId++){
- vtkIdType id = myExtractUnstructuredGrid->GetInputId(anId);
- id = (id >=0) ? id : anId;
+ myExtractUnstructuredGrid->BuildOut2InMap();
+ for(int anId = 0; anId < aNbElem; anId++)
+ {
+ vtkIdType id = anId;
+ if(IsImplicitFunctionUsed())
+ id = myExtractGeometry->GetElemObjId(id);
+ id = myExtractUnstructuredGrid->GetInputId(id);
+ id = (id >=0) ? id : anId;