Maths + Divide Curve

Hello,

i want to generate sequence of numbers as following

X/30 (1st and last divided length of curve)

X/10 (repeated 6 times and alternate)

X/15 (repeated 5 times and alternate)

X/10

X/15

X/10

X/15

X/10

X/15

X/10

X/15

X/10

X/30

X = length of a curve. When added these will add upto length of curve too.

Then divide curve with these numbers.

Can can any-1 help out with generating number sequence to begin with?

Regards,

AB

  • up

    Joseph Oster

    I think there might be a subtle error in your description of the problem...?

    When I look at your sequence, I see it this way: 1,3,2,3,2,3,2,3,2,3,2,3,2,1 (1/30, 3/30ths, 2/30ths, etc.)

    But those add up to 32, not 30.  I didn't see anything about the pattern that inspired me to generate the sequence parameterically, so I moved on to dividing the curve.

    1. I entered the sequence of numbers in a 'Panel', parsed them using 'Text Split (Split on comma)', divided the length of the curve by their sum (32 from 'Mass Addition').
    2. Multiply each number in the list by that result.  This gives the length of each sub-curve/segment.
    3. 'Remap Numbers (ReMap)' lengths from '0 to curve length' to '0..1'.
    4. Use 'Series' and 'Sub List (SubSet)' to sum up ('MA') the segment lengths preceding each curve point (0..0, 0..1, 0..2, 0..3, etc.).  These are the 't' values needed for 'Shatter'.
    5. 'Flip' the output of 'MA' before passing the list of 't' values to 'Shatter'.  "Flatten' would work here too but experience shows that 'Flip' works better if you want to handle multiple curves.

    This works with any sequence of numbers as inputs - integers or floating points.

    7
  • up

    Agneesh

    Joseph & Pieter thanks for your inputs.

    This is a wonderful community and very helpful members.

    Pieter, i have used repeat data > weave > insert > shatter

    but your definitions is 1 step less and relatively more refined.

    Thanks for that.

    AB

    1