@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
25 lines (20 loc) • 604 B
JavaScript
import {Configs} from "../../../../../Configs.js";
const configs = new Configs();
/**
* @private
*/
export class VBOBatchingTrianglesBuffer {
constructor(maxBatchSize = configs.maxGeometryBatchSize) {
this.maxVerts = maxBatchSize;
this.maxIndices = maxBatchSize * 3; // Rough rule-of-thumb
this.positions = [];
this.colors = [];
this.uv = [];
this.metallicRoughness = [];
this.normals = [];
this.pickColors = [];
this.offsets = [];
this.indices = [];
this.edgeIndices = [];
}
}