@xeokit/xeokit-sdk 2.6.106 → 2.6.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.6.106",
3
+ "version": "2.6.107",
4
4
  "description": "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",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -3341,11 +3341,13 @@ export class SceneModel extends Component {
3341
3341
  if (testNumVisibleLayerPortions && (this.numVisibleLayerPortions === 0)) {
3342
3342
  return;
3343
3343
  }
3344
+ const activeSectionPlanes = this.scene._sectionPlanesState.sectionPlanes.filter(p => p.active);
3344
3345
  const testLayerCull = frameCtx.testAABB;
3345
3346
  const renderFlags = this.renderFlags;
3346
3347
  for (let i = 0, len = renderFlags.visibleLayers.length; i < len; i++) {
3347
3348
  const layer = this.layerList[renderFlags.visibleLayers[i]];
3348
- if ((! testLayerCull) || testLayerCull(layer.getAABB())) {
3349
+ const aabb = layer.getAABB();
3350
+ if (((! testLayerCull) || testLayerCull(aabb)) && activeSectionPlanes.every(p => math.planeAABB3Intersect(p.dir, p.dist, aabb) >= 0)) {
3349
3351
  cb(layer);
3350
3352
  }
3351
3353
  }