Draw Line With Html From position

I want to show the dimension of my modal using html/css, I already made it with points but which I want is line to connect points. How can I do that?

Thanks

Hallo!
Drawing lines – three.js docs (threejs.org)
LineBasicMaterial – three.js docs (threejs.org)

Thanks for reply, but the thing is I want to draw this with html/css , not in the scene

canvas 2d context

I dont know, but maybe need svg. Or css tag div with rotation…

1 Like

https://threejs.org/examples/#css3d_molecules
Look at this example

1 Like

Thank you for the answer :slight_smile: I was hoping to find something like that :d

1 Like

Yes, it’s pretty intensive when there’s many elements in the scene, depending on the use case you could generate a lot of this with line geometry between css2d nodes for a more performant environment. Again it depends on use case.

1 Like