How to use the LineCurve3 function from three
Find comprehensive JavaScript three.LineCurve3 code examples handpicked from public code repositorys.
45 46 47 48 49 50 51 52 53 54
object.add(xaxis); addLabel(size, -0.04, 0, 'X', 'red', 16, 0); curve = new three.LineCurve3(new three.Vector3( 0, -0.04, 0), new three.Vector3(0, -0.04, size)); geometry = new three.BufferGeometry().fromGeometry(new three.TubeGeometry(curve, 0, 5 / 2, 0, true)); material = new three.MeshBasicMaterial({color: 'green'}); yaxis = new three.Mesh(geometry, material);
306
0
10
+ 17 other calls in file
152 153 154 155 156 157 158 159 160
} } let startVector = new THREE.Vector3(x, this.opts.length / 2, z); let endVector = new THREE.Vector3(x, -1 * (this.opts.length / 2), z); let lineCurve = new THREE.LineCurve3(startVector, endVector); this.coinPaths.push(lineCurve); } }
2
7
1
+ 3 other calls in file
three.Vector3 is the most popular function in three (22341 examples)