Grasshopper

algorithmic modeling for Rhino

Dividing of Curves into Unequal Lengths (using graphmapper)

I am looking for advise on how to divide a curve into unequal segments using the graphmapper. Attached is my definition file and a screen shot. What I would like to do is this: Using the graphmapper, take the output values and apply them as length segments on a curve.
In the attached screen shot, you can see the length values in the notepad. Am I taking a wrong path here??? Unfortunately, this is a small portion of a definition I am working on. I would like to use the graphmapper to generate my segments lengths because of it being part of other components.
Any comment or solutions would be very appreciated. Thx

Views: 6756

Attachments:

Replies to This Discussion

Hi Greg,

you could try using Mass Addition to add all the segment lengths together. The Partial Result output of Mass Addition should then give you lengths along the curve for every point.

However, this approach does not guarantee that the whole curve will be divided as the sum total of all segments is very unlikely indeed to match the total length of the curve.

--
David Rutten
david@mcneel.com
London, UK
Thanks David,
I've tried the Mass Addition and not sure what going on. The output understand that there are 75 vectors (correct), but wants to place each vector equally 1 units apart... Maybe I am missing something. Am I making this difficult because I want to use graphmapper?
-Greg
Attachments:
There are two Mass Addition Components one for Vectors and one for Numbers have a look under Scalar>Utilities in version 0.6 or Maths Tab in v0.7
Ah ha! Thanks for the clarification. Still working on it and not getting too far. Maybe I don't quite understand the component. Going to see if I can find something in the manual. thanks for the input.
Try using the Eval Component (Curve>Analysis>Eval) this allows you to obtain a point on a curves length it will accept either a length factor i.e. 0-1 like the output of the graph mapper or as a specific length along the curve just set N to False.

Once you have the points you can then shatter the curve Curve>Division>Shatter with these points

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service