List<TriElement> elements = m.getElements();
MultiPolygon[] polys = new MultiPolygon[elements.size()];
for (int i = 0; i < elements.size(); i++) {
TriElement element = elements.get(i);
Shape s = getElementSubShape(element, scalar, thrsh, intPoints);
if(s != null){
polys[i] = JTSUtils.createMultiPolygon(s);