ShapeHasCompartments Constructor