added getTriMasks to triangle1/triangle1mb classes