Linesegment line position

Hi, I have a LineSegments created with BufferGeometry with attributes color and position. I what to get the Vector3 position of each vertices for label.

Am trying not to make this an xy question but i want to get all the lines in the LineSegments and label them.

Could you provide more details on what you want to achieve? Explanatory pictures?
And a live code example, of course.

Some thing like this.

but will have to rotate the labels to match the lines.

Interesting. So what have you tried? :wink:

nothing really, but is it possible to get the position of a vertex?

Yes, all positions are stored in a buffer attribute, that is geometry.attributes.position, where geometry is THREE.BufferGeometry().

A very simple example where you can see it:

to find; in the collection Collection of examples from