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?
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:
Normal, just does what it always does, puts points at the end of the curve.
Omit, leaves out the first or last division.
Move Halfway, only moves the first or last division to the middle of the first or last segment.
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.
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