How to use the Line3 function from three
Find comprehensive JavaScript three.Line3 code examples handpicked from public code repositorys.
GitHub: OpenSlicer/OpenSlicer
314 315 316 317 318 319 320 321 322 323
let out = [] triangles.faces.forEach((f, index) => { let vs = [triangles.vertices[f.a], triangles.vertices[f.b], triangles.vertices[f.c]] let ls = [ new THREE.Line3(vs[0], vs[1]), new THREE.Line3(vs[1], vs[2]), new THREE.Line3(vs[2], vs[0]), ] if (isHorizontalFace(vs)) {
2
14
0
+ 17 other calls in file
three.Vector3 is the most popular function in three (22341 examples)