import { PolyhedronData, PolyhedronDataSchema } from "../proto/compas_pb/generated/datastructures_pb.js"; import { Point } from "../geometry/point.js"; import { PolyhedronFace } from "./face.js"; import { MessageInitShape } from "@bufbuild/protobuf"; //#region src/datastructures/polyhedron.d.ts /** The fields a Polyhedron is built from. */ type PolyhedronInit = MessageInitShape; declare class Polyhedron { readonly data: PolyhedronData; private _points?; private _faces?; constructor(init: PolyhedronInit); get bytes(): Uint8Array; /** Reads a Polyhedron from the bytes of its protobuf message. */ static fromBytes(bytes: Uint8Array): Polyhedron; get guid(): string; get name(): string; get vertices(): Point[]; get faces(): PolyhedronFace[]; } declare function bytesToPolyhedron(bytes: Uint8Array): Polyhedron; declare function polyhedronToBytes(polyhedron: Polyhedron): Uint8Array; //#endregion export { Polyhedron, PolyhedronInit, bytesToPolyhedron, polyhedronToBytes }; //# sourceMappingURL=polyhedron.d.ts.map