} else if (this.getString(0).equals("polygon2d")) {
newRegion = new PolygonRegion(controller);
} else if (this.getString(0).equals("ellipsoid")) {
newRegion = new EllipsoidRegion(controller);
} else if (this.getString(0).equals("cylinder")) {
newRegion = new CylinderRegion(controller);
} else {
return "Invalid selection type. Must be cuboid|polygon2d|ellipsoid|cylinder.";
}
controller.setSelection(newRegion);