Detect mouse click on .obj model and draw a line until next click

A line generated by clicks on the model.
You mean something like this?

I used the events of the three.ez library, which is very convenient in this case, but it is also possible to do this without external libraries using the already mentioned Raycaster.

const points: Vector3[] = [];

model.on('click', (e) => {