I think that I can calculate several properties together in the main loop.
1). Proximity pattern
2). Slope pattern
just like POV-Ray's slope pattern, assign a axis, then calc the slope of that
axis
3). ...
investigate the point is near or far from object surface
then output to series .df3 file.