Hi Marc,

shattering works on curve parameters, not length values.

What is the error you get (when a component is red, it contains errors
which are available in the component menu).

Try the following:

In the shatter component -> curve input, enable the "Reparameterize"
option. This will change the domain of all your curves to {0.0 ; 1.0}.
Once all your curves have the same domain, you can shatter them all at
parameter 0.5

Do note that the progression of parameters along a curve might not be
linear. Some curve types (like lines and arcs) do have linear
progressions, but many free form nurbs curves will not.

http://groups.google.com/group/grasshopper3d/web/SplitHalfway.png

--
David Rutten
da...@mcneel.com
Robert McNeel & Associates



On Apr 1, 12:19 am, Marc Syp <marc....@gmail.com> wrote:
> http://groups.google.com/group/grasshopper3d/web/090331-shatterCrvPro...
>
> I have uploaded an image of the simplified definition that is causing
> problems.  I have one 4-pt planar surface BRep.  I am wanting to
> extract the wireframe and split the four line-like curves in half.  I
> measure the length and plug in the half-length into the CrvShatter
> component parameter (t).  I have four curves, and four (t) values.
> The component fails, turns red, and outputs 10 line-like curves.
>
> Incidentally the curves that DO shatter comprise two out of the four
> lines, and if I join some of the segments I can get two halves of each
> of these two lines (meaning that at some point the component is
> splitting the curves at the halfway point).
>
> However I would expect eight lines, the four split cleanly at the
> middle.
>
> Am I doing something wrong or is this a component problem?
>
> Thanks,
> Marc

Reply via email to