comment/format tweaks
Corrected comments re masked neighbor pixels
Factor top/bottom tri surface generation into its own function