Draw a line on surface mesh!

Hello guys,

I want a function to view the terrain shape and measure its height. How can I draw a line from 2 points on the surface of the model.
Can anyone give me some directions. Any information is precious to me.

[SOLVED]Mesure distance between two points on a object by clicking - #34 by prisoner849

and from the Collection of examples from discourse.threejs.org


1 Like

Thank you for your response. But what I want is a line connecting 2 points and lying on the surface of the object, not a line segment representing the distance of those 2 points.
Like that:

Maybe you can modify this example @prisoner849 ?


One of solution is using geometry intersection. Line like thin box.

Or decals: three.js examples