Grasshopper

algorithmic modeling for Rhino

simple issue: moving a circle along a line within geometry

i have a simple piece of geometry, and the center point of the circle is defined by the end point of a line.  i want to be able to move the circle down that line.  i thought i would use subtraction from the output of the line component before it reaches the center point of the circle,  but i receive an error message.  it seems like there is a simple solution.  can anyone advise?  files are attached. 

with thanks

Views: 1132

Attachments:

Replies to This Discussion

Hi Pwdarden,

I think a relatively simple fix would be to deconstruct the point into each of it's three constituent values, and then subtract your number from each of these values.  Then, using a simple cull pattern, (True, False, False) (False, True, False) (False, False, True) you could reconstruct the point with the desired values.  For instance:

If all that you want to be able to do is move the circle along the line using a slider, you can use the component 'point on curve' which IS a slider that controls a point along a curve.  You would run the line into the 'point on curve' and the output into the center of your circle.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service