Grasshopper

algorithmic modeling for Rhino

Hi guys, I would like to move a point within a irregular form, it's easy to move it in a rectangle because x and y coincide with its sides. But in a irregular form, how I can do it?

I need 2 Slider (x & y) for move the point on XY plane in the limit of the irregular form, is there anyone that could help me??

Thanks in advance!! ;-)

Views: 2368

Replies to This Discussion

I quess you mean moving a point on a given surface. Coordinates on a surface are given as U and V instead of X and Y. Feed UV coordinates (just a xyzPoint with only X and Y set) into the evaluateSurface component and see your point move on the surface.

Attachments:

Hi Hannes, I want move the point inside the surface, not on the perimeter (perimeter is the limit, the point can't go outside). I only need move it with 2 slider (on x and y) and that remains inside the surface. Thanks a lot!! ;-)

Attachments:

If you can split your curve into 4 segments and create 2RailSweep, the UV logic applies.

Otherwise the solution depends on how you want to handle coordiante sliders going out of range. I have attached one solution involving SurfaceClosestPoint

Attachments:

would taking the centroid of a volume + some kinf of xyz point + a closest point on surface  + some kind of divider do it?

Thanks Hannes!! Very kind of you!!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service