Three.js: fat lines for linesegments?

Created on 5 Sep 2020  路  2Comments  路  Source: mrdoob/three.js

There are examples ... examples/webgl_lines_fat.html (for instance) which indicate that thick lines can work.... but they only work for a line geometry. I have a bunch of line segments https://d3x0r.github.io/STFRPhysics/3d/indexArmProper.html which are not lines... but just segments; can't the same thing be done for those?

I don't really want to add 150,000 objects to the scene, but rather 1 object with 150,000 point/color pairs is much more reasonable. (depending on options a LOT of segments can be shown).

Three.js version
  • [X] Dev
  • [X] r120
  • [X] r115
Browser
  • [x] All of them
  • [ ] Chrome
  • [ ] Firefox
  • [ ] Internet Explorer
OS
  • [ ] All of them
  • [X] Windows
  • [ ] macOS
  • [ ] Linux
  • [ ] Android
  • [ ] iOS
Examples Question

Most helpful comment

There's no example for them but both LineSegments2 and LineSegmentsGeometry in the examples/jsm/lines folder should do what you want.

All 2 comments

There's no example for them but both LineSegments2 and LineSegmentsGeometry in the examples/jsm/lines folder should do what you want.

As @gkjohnson said, what you want is already supported.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zsitro picture zsitro  路  3Comments

akshaysrin picture akshaysrin  路  3Comments

ghost picture ghost  路  3Comments

jlaquinte picture jlaquinte  路  3Comments

yqrashawn picture yqrashawn  路  3Comments