Esempio n. 1
0
File: TIN.php Progetto: brick/geo
 /**
  * {@inheritdoc}
  *
  * @throws UnexpectedGeometryException If the patches are not triangles.
  */
 public function __construct(CoordinateSystem $cs, Polygon ...$patches)
 {
     parent::__construct($cs, ...$patches);
     foreach ($patches as $patch) {
         if (!$patch instanceof Triangle) {
             throw new UnexpectedGeometryException('The patches in a TIN must be triangles.');
         }
     }
 }