move sketch to seperate group

master
howard 2021-03-25 23:08:38 -07:00
parent bf2aaf1b94
commit 642e730029
3 changed files with 4 additions and 17 deletions

13
package-lock.json generated
View File

@ -6,7 +6,6 @@
"": { "": {
"devDependencies": { "devDependencies": {
"css-loader": "^5.1.3", "css-loader": "^5.1.3",
"dat.gui": "^0.7.7",
"gh-pages": "^3.1.0", "gh-pages": "^3.1.0",
"redux": "^4.0.5", "redux": "^4.0.5",
"sass": "^1.32.8", "sass": "^1.32.8",
@ -635,12 +634,6 @@
"node": ">=4" "node": ">=4"
} }
}, },
"node_modules/dat.gui": {
"version": "0.7.7",
"resolved": "https://registry.npmjs.org/dat.gui/-/dat.gui-0.7.7.tgz",
"integrity": "sha512-sRl/28gF/XRC5ywC9I4zriATTsQcpSsRG7seXCPnTkK8/EQMIbCu5NPMpICLGxX9ZEUvcXR3ArLYCtgreFoMDw==",
"dev": true
},
"node_modules/duplexer": { "node_modules/duplexer": {
"version": "0.1.2", "version": "0.1.2",
"resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz",
@ -3098,12 +3091,6 @@
"integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
"dev": true "dev": true
}, },
"dat.gui": {
"version": "0.7.7",
"resolved": "https://registry.npmjs.org/dat.gui/-/dat.gui-0.7.7.tgz",
"integrity": "sha512-sRl/28gF/XRC5ywC9I4zriATTsQcpSsRG7seXCPnTkK8/EQMIbCu5NPMpICLGxX9ZEUvcXR3ArLYCtgreFoMDw==",
"dev": true
},
"duplexer": { "duplexer": {
"version": "0.1.2", "version": "0.1.2",
"resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz",

View File

@ -7,7 +7,6 @@
}, },
"devDependencies": { "devDependencies": {
"css-loader": "^5.1.3", "css-loader": "^5.1.3",
"dat.gui": "^0.7.7",
"gh-pages": "^3.1.0", "gh-pages": "^3.1.0",
"redux": "^4.0.5", "redux": "^4.0.5",
"sass": "^1.32.8", "sass": "^1.32.8",

View File

@ -27,7 +27,7 @@ export function extrude() {
for (let i = 0; i < 2; i++) { for (let i = 0; i < 2; i++) {
let d = linkedObj[1][i] let d = linkedObj[1][i]
if (d == -1 || d == node) continue; if (d == -1 || d == node) continue;
if (d == children[1]) { if (d == children[0]) {
console.log('pair found') console.log('pair found')
}; };
findTouching(d) findTouching(d)
@ -53,7 +53,7 @@ export function extrude() {
} }
findPair(children[1]) findPair(children[0])
const shape = new THREE.Shape(v2s); const shape = new THREE.Shape(v2s);
@ -65,6 +65,7 @@ export function extrude() {
const mesh = new THREE.Mesh(geometry, phong); const mesh = new THREE.Mesh(geometry, phong);
this.add(mesh) this.add(mesh)
// this.sketch.visible = false
} }