UNPKG

@itwin/core-frontend

Version:
33 lines 1.28 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ /** @packageDocumentation * @module Rendering */ /** @internal */ export class PolyfacePrimitive { displayParams; _polyface; displayEdges; isPlanar; get indexedPolyface() { return this._polyface; } static create(params, pf, displayEdges = true, isPlanar = false) { return new PolyfacePrimitive(params, pf, displayEdges, isPlanar); } constructor(params, pf, displayEdges, isPlanar) { this.displayParams = params; this._polyface = pf; this.displayEdges = displayEdges; this.isPlanar = isPlanar; } clone() { return new PolyfacePrimitive(this.displayParams, this._polyface.clone(), this.displayEdges, this.isPlanar); } transform(trans) { return this._polyface.tryTransformInPlace(trans); } } /** @internal */ export class PolyfacePrimitiveList extends Array { constructor(...args) { super(...args); } } //# sourceMappingURL=Polyface.js.map