Ben Mack
Ben Mack

Reputation: 499

Measuring distance of 3d model?

I want to make measuring tape look like the image below:

enter image description here

Here the link to product on image: Link, they use Webgl too, but not Three.js

So, How to make measuring tape for 3d model in Three.js?

Thanks.

Upvotes: 2

Views: 2035

Answers (1)

mrdoob
mrdoob

Reputation: 19602

By using this example as reference you should be able to figure out where in the geometry you're clicking.

Having those points then is just a matter of doing this:

var distance = point1.distanceTo( point2 );

Upvotes: 7

Related Questions