Browse Source

let detail go to 0 on primitives

Gregg Tavares 5 years ago
parent
commit
61993b72c6
1 changed files with 5 additions and 5 deletions
  1. 5 5
      threejs/lessons/resources/threejs-primitives.js

+ 5 - 5
threejs/lessons/resources/threejs-primitives.js

@@ -99,7 +99,7 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
     DodecahedronBufferGeometry: {
       ui: {
         radius: { type: 'range', min: 1, max: 10, precision: 1, },
-        detail: { type: 'range', min: 1, max: 5, precision: 0, },
+        detail: { type: 'range', min: 0, max: 5, precision: 0, },
       },
       create(radius = 7) {
         return new THREE.DodecahedronBufferGeometry(radius);
@@ -169,7 +169,7 @@ const geometry = THREE.ExtrudeBufferGeometry(shape, extrudeSettings);
     IcosahedronBufferGeometry: {
       ui: {
         radius: { type: 'range', min: 1, max: 10, precision: 1, },
-        detail: { type: 'range', min: 1, max: 5, precision: 0, },
+        detail: { type: 'range', min: 0, max: 5, precision: 0, },
       },
       create(radius = 7) {
         return new THREE.IcosahedronBufferGeometry(radius);
@@ -203,7 +203,7 @@ const geometry = THREE.ExtrudeBufferGeometry(shape, extrudeSettings);
     OctahedronBufferGeometry: {
       ui: {
         radius: { type: 'range', min: 1, max: 10, precision: 1, },
-        detail: { type: 'range', min: 1, max: 5, precision: 0, },
+        detail: { type: 'range', min: 0, max: 5, precision: 0, },
       },
       create(radius = 7) {
         return new THREE.OctahedronBufferGeometry(radius);
@@ -289,7 +289,7 @@ const geometry = THREE.ExtrudeBufferGeometry(shape, extrudeSettings);
     PolyhedronBufferGeometry: {
       ui: {
         radius: { type: 'range', min: 1, max: 10, precision: 1, },
-        detail: { type: 'range', min: 1, max: 5, precision: 0, },
+        detail: { type: 'range', min: 0, max: 5, precision: 0, },
       },
       create(radius = 7, detail = 2) {
         const verticesOfCube = [
@@ -383,7 +383,7 @@ const geometry = THREE.ExtrudeBufferGeometry(shape, extrudeSettings);
     TetrahedronBufferGeometry: {
       ui: {
         radius: { type: 'range', min: 1, max: 10, precision: 1, },
-        detail: { type: 'range', min: 1, max: 5, precision: 0, },
+        detail: { type: 'range', min: 0, max: 5, precision: 0, },
       },
       create(radius = 7) {
         return new THREE.TetrahedronBufferGeometry(radius);