I think we need another "Divide Curve" option

I am often making structures that require a repetitive pattern of points on neighboring curves (like a brick wall or stacked pile of cylinders). It would be so handy to have options for dividing the lines in other common ways. I can accomplish this with other components added together, but it takes up space in my grasshopper definition and it so useful that it could stand alone by itself. Here is some examples. I was thinking that if it had start/end boolean parameters where it would add a point half the division length from either end (or both if both are toggled).

I accomplish this typically but negatively extending every second curve by half the division length but that requires several components where one would do nicely. Would anyone else find this useful?

Makes sense to me, I’ve logged it, but for Grasshopper2 only. For Grasshopper1 a C# or Python solution will have to suffice.

I added hidden input options for the start and end behaviour of the normal Divide By Count component in Grasshopper 2. There are 4 options, freely assignable to each end:

  1. Normal, just does what it always does, puts points at the end of the curve.
  2. Omit, leaves out the first or last division.
  3. Move Halfway, only moves the first or last division to the middle of the first or last segment.
  4. Trim Halfway, moves the first or last division to the middle of the first or last segment, and updates the remaining divisions accordingly to ensure equal spacing.

All four options shown below:

That will be really useful. Thank you so much. Will GH2 be available for Rhino 8?

Hi David Headrick,

GH2 production in Rhino 8 was stopped, its available there but not up to date.

All progress since is in Rhino Beta. It would require too many changes to Rhino 8 right at the end of its production cycle.

consider that you can also create sort of reusable small thinghies like these:

Curve_divisions.gh (21.2 KB)

I think this is interesting but can be endless, you have listed some cases but everyday someone else can come and add new combinations of “I need division by N times with starting and/or ending segment of X% of internal segments length”.
I would suggest @DavidRutten a more general addition to the component:
optional Start and End input receiveing a float number (ratio with internal segments length), that generates an optional segment at start / end of curve.

  • for divide by count you can achieve your previously listed cases by using 0 (or empty), 0.5, >1, or any fraction (smaller or larger than 1) you need
  • it can also be implemented in division by lenght, same logic
  • for division by distance also i think, giving the optional start/end segments the input% distance between endpoints (not lenght of segment), like the internal segments

the Divide component would look something like this


this is just a starting idea, feel free to take it and save it in a cluster for GH1 and/or develop it further
DivideCountStartEnd.gh (10.4 KB)

EDIT:
actually, for divide by length and by distance there is a little more to think about, not the same implementation.
anyway for those cases I would also suggest integrating the veryuseful RefPt by Paneling tools plugin


note that the reference point can also be not directly in the curve, but nearby: the component calculates automatically the curve closest point