Exctracting dofs of cells with level-set function values within interval