Distance Between Polygon And Curve

Hello

I've been reading all around and couldn't find something more specific to my problem... here's the outline:

  1. I have a curve, randomly generated (not tridimensional, only on the xy axes)
  2. I'll place polyCubes or spheres or any other object randomly
  3. When I place them, I want to check how far they are from the curve, and according to this value, make some sort of transformation with it (eg the objects should get bigger the closer they are to the curve...)

Any easy and simple workaround to that?

Found this topic http://www.highend3d.com/boards/index.php?...stance+to+curve but it deals with surfaces, not polys... maybe surfaces are better for this purpose??

Thank you a lot
Daniel

Use a closet point on curve node.