We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcaf03a commit ef70ac4Copy full SHA for ef70ac4
js/app.js
@@ -44911,6 +44911,9 @@ function cube(size) {
44911
function plane(p, n, size) {
44912
n = n.normalize().negate();
44913
var m = new THREE.Vector3(0, 0, 1);
44914
+ if (Math.abs(m.dot(n)) < 0.01) {
44915
+ m = new THREE.Vector3(1, 0, 0);
44916
+ }
44917
44918
var a = n.clone().cross(m);
44919
var b = a.clone().cross(n);
src/csg.js
@@ -143,6 +143,9 @@ function cube(size) {
143
144
145
let m = new THREE.Vector3(0, 0, 1);
146
147
+ m = new THREE.Vector3(1,0,0);
148
149
150
let a = n.clone().cross(m);
151
let b = a.clone().cross(n);
0 commit comments