Browse Source

add thresholdAngle

Gregg Tavares 5 years ago
parent
commit
9262abfee8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      threejs/threejs-primitives.html

+ 4 - 1
threejs/threejs-primitives.html

@@ -324,7 +324,10 @@ function main() {
     const width = 8;
     const width = 8;
     const height = 8;
     const height = 8;
     const depth = 8;
     const depth = 8;
-    addLineGeometry(-1, -2, new THREE.EdgesGeometry(new THREE.BoxBufferGeometry(width, height, depth)));
+    const thresholdAngle = 15;
+    addLineGeometry(-1, -2, new THREE.EdgesGeometry(
+        new THREE.BoxBufferGeometry(width, height, depth),
+        thresholdAngle));
   }
   }
   {
   {
     const width = 8;
     const width = 8;