added masking options for level-set filtering and meshing