How to use the Line3 function from three

Find comprehensive JavaScript three.Line3 code examples handpicked from public code repositorys.

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)) {
fork icon2
star icon14
watch icon0

+ 17 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)