To avoid an automatic deleltion of your SetOf, you can use :
Core::SetOf<DEM::DiscreteElement>* inter = new Core::SetOf<DEM::DiscreteElement>("NEW"); // Create a new setOf
inter->Intersection(xMinSet, yMinSet); // Now, this setOf is the intersection
This problem comes from C++ not from GranOO
kind regards, Damien.