Shatter bug


(Andy Vanmater) #1

using the shatter component will often change the domain of a reparameterized curve its breaking. Attached is the simplest example I could manage. It seems to shift forward the same amount above 0 as 1 so the delta remains the same. Just in case it’s some foolishness of my computer I’ve attached a screenshot too.

Shatter (5.2 KB)

edit: Looks like the domain is shifted to the first value in the parameter list rather than the T0 of the curve…

(David Rutten) #2

If the curve is closed, and there is no shatter point at the seam, then the curve will be modified so that the seam is now at the lowest shatter parameter. This is necessary lest the curve segment from the original seam to the first shatter parameter and the segment from the last parameter to the end of the curve end up as two separate curves.

(Andy Vanmater) #3

Okay I understand. This puts a hiccup in reevaluating the original unshattered curve as the domain now goes above 1, but I suppose using a modulus would fix that problem.

(Michael Pryor) #4

What about moving the seam to the first shatter param but then shattering with the original point locations?

Shatter (8.9 KB)

(Andy Vanmater) #5

I like your solution and I tried with limited success. Something about the tolerances of the seam movement and closest point thing were messing me up. The modulus thing ended up working for what I needed but I simply didn’t anticipate this behavior. Sorry for using the “b” word in the first place.