Revert commit:7e74aa9

Interval criteria for Z Range is:
Full visible: z in [p, p+d]
Partially visible: z in [p-t, p) or (p+d, p+d+t]
Default d=0