Radius around mouse location on mesh

I'm looking for an easy way to collect all the vertices within a radius around the location of a mouse event on a mesh, it's for a little terrain editor thing I'm experimenting with.



I've figured out what I think would be the hard way, i.e. mouse down, get surrounding area with (x-h)^2 + (y-k)^2 = r^2 where (h, k) = (x, y) of mouse event location (centre of circle).



I was wondering if JME had any built-in functions for stuff like this?

TestTrianglePick.java might give you some ideas.

cheers I'll have a look :slight_smile: