@itwin/core-common
Version:
iTwin.js components common to frontend and backend
32 lines • 1.35 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 Tile
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.PntsHeader = void 0;
const TileIO_1 = require("./TileIO");
/** Header preceding tile content in [pnts](https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/specification/TileFormats/PointCloud) format.
* @internal
*/
class PntsHeader extends TileIO_1.TileHeader {
length;
featureTableJsonLength;
featureTableBinaryLength;
batchTableJsonLength;
batchTableBinaryLength;
get isValid() { return TileIO_1.TileFormat.Pnts === this.format; }
constructor(stream) {
super(stream);
this.length = stream.readUint32();
this.featureTableJsonLength = stream.readUint32();
this.featureTableBinaryLength = stream.readUint32();
this.batchTableJsonLength = stream.readUint32();
this.batchTableBinaryLength = stream.readUint32();
}
}
exports.PntsHeader = PntsHeader;
//# sourceMappingURL=PntsTileIO.js.map