three-cad-viewer 2.2.2 → 2.2.4

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.
@@ -55685,6 +55685,8 @@ class Raycaster {
55685
55685
  const objectGroup = object.object.parent;
55686
55686
  if (objectGroup == null) continue;
55687
55687
 
55688
+ if (!objectGroup.shapeInfo) continue; // clipping plane
55689
+
55688
55690
  const topo = objectGroup.shapeInfo.topo;
55689
55691
  let geom;
55690
55692
  if (topo !== "vertex")
@@ -58559,7 +58561,9 @@ class ObjectGroup extends Group {
58559
58561
  }
58560
58562
 
58561
58563
  setShapeVisible(flag) {
58562
- this.types.front.material.visible = flag;
58564
+ if (this.types.front) {
58565
+ this.types.front.material.visible = flag;
58566
+ }
58563
58567
  for (var t of ["clipping-0", "clipping-1", "clipping-2"]) {
58564
58568
  if (this.types[t]) {
58565
58569
  this.types[t].children[0].material.visible = flag;
@@ -62860,7 +62864,7 @@ class Camera {
62860
62864
  }
62861
62865
  }
62862
62866
 
62863
- const version = "2.2.2";
62867
+ const version = "2.2.4";
62864
62868
 
62865
62869
  class Viewer {
62866
62870
  /**