Grasshopper

algorithmic modeling for Rhino

divide curve with a paramater as an attractor for unequal division

Hi, 

I would like to divide a curve (either by number or by length), with the parameters influenced by another point evaluated on the curve and use magnitude to drive.

For example:

I have a reparametrized curve that i want to subdivide in parameter increments of .05 (points B). Seperately, I would evaluate the curve at .43 (point A). I want point A to cause magnitude influences on points B (while remaining on the curve) such that the ones near point A exhibit the strongest influence (move slightly closer or slightly away from Point A)while the ones furthest away exhibit the weakest influence or no influence at all. 

Views: 3472

Replies to This Discussion

Hello Dimitar,

is the attached what you had in mind?

Attachments:

Hi Nick,

Thanks for the script. Is it possible when pt a's parameter is changed to influence the rest of the points, especially the ones that are closer to it? 

Nick, thanks again for the script, I modified it to do what I need to do.

Is there a way to make the magnitude of spacing more accurate. Let's say, i would like the closest distance to be .5, which would happen near point A, and the furthest distance to be 1, which is the furthest from point A.

Also, is there a way to create brackets of distances? Let's say I would like to have 3 brackets of fixed distances. Closest points to Point A should be Dist A away from point A and from the next few following Point Bs, furthest should be Dist C and in between should be Dist B. 

Attachments:

Hi Dimitar.

Sorry, I've been sick for the past few days. I am still trying to wrap my head around this.

Confirm the following:

- Divide a curve into "X" amount of divisions

- Select a point of influence along the curve

- The division points on either side of the point of influence should be at a distance of "X"

- The distance between the last and first division point should be "Y"

- The distance between the remaining points should vary from "X" to "Y" on either side of the point of influence.

Nick, that's exactly it!

I found this thread because I am working on something similar. Did you get any solution?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service