@itwin/core-frontend
Version:
iTwin.js frontend components
38 lines • 1.51 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* 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
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.PolyfacePrimitiveList = exports.PolyfacePrimitive = void 0;
/** @internal */
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); }
}
exports.PolyfacePrimitive = PolyfacePrimitive;
/** @internal */
class PolyfacePrimitiveList extends Array {
constructor(...args) {
super(...args);
}
}
exports.PolyfacePrimitiveList = PolyfacePrimitiveList;
//# sourceMappingURL=Polyface.js.map