import { GeometryType, Geometry, Surface, Polygon } from "./internal"; /** * Contiguous collection of polygons which share common boundary segments. * * @author osbornb */ export declare class PolyhedralSurface extends Surface { /** * List of polygons */ private _polygons; constructor(); constructor(polygon: Polygon); constructor(polyhedralSurface: PolyhedralSurface); constructor(polygons: Array); constructor(hasZ: boolean, hasM: boolean); constructor(type: GeometryType, hasZ: boolean, hasM: boolean); /** * Get polygons * @return polygons */ get polygons(): Array; /** * Get patches * * @return patches * @see #getPolygons() */ get patches(): Array; /** * Set polygons * * @param polygons * polygons */ set polygons(polygons: Array); /** * Set patches * * @param patches * patches * @see #setPolygons(List) */ set patches(polygons: Array); /** * Add polygon * @param polygon polygon */ addPolygon(polygon: Polygon): void; /** * Add patch * @param patch patch * @see #addPolygon(Polygon) */ addPatch(patch: Polygon): void; /** * Add polygons * @param polygons polygons */ addPolygons(polygons: Array): void; /** * Add patches * @param patches patches * @see #addPolygons(List) */ addPatches(patches: Array): void; /** * Get the number of polygons * @return number of polygons */ numPolygons(): number; /** * Get the number of polygons * @return number of polygons * @see #numPolygons() */ numPatches(): number; /** * Get the Nth polygon * @param n nth polygon to return * @return polygon */ getPolygon(n: number): Polygon; /** * Get the Nth polygon patch * @param n nth polygon patch to return * @return polygon patch * @see #getPolygon(int) */ getPatch(n: number): Polygon; /** * {@inheritDoc} */ copy(): Geometry; /** * {@inheritDoc} */ isEmpty(): boolean; /** * {@inheritDoc} */ isSimple(): boolean; /** * {@inheritDoc} */ equals(obj: Geometry): boolean; }