public function __construct($points) { parent::__construct(); $polygon = new Image_3D_Polygon(); foreach ($points as $point) { $polygon->addPoint($point); } $this->_addPolygon($polygon); }