@vrame/xeokit-sdk
Version:
3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision
20 lines (16 loc) • 468 B
JavaScript
/**
* @private
*/
export class VBOBatchingLinesBuffer {
constructor(maxGeometryBatchSize = 5000000) {
if (maxGeometryBatchSize > 5000000) {
maxGeometryBatchSize = 5000000;
}
this.maxVerts = maxGeometryBatchSize;
this.maxIndices = maxGeometryBatchSize * 3; // Rough rule-of-thumb
this.positions = [];
this.colors = [];
this.offsets = [];
this.indices = [];
}
}