Kangaroo2 duplicate curves during non-uniform offset

Hey @DanielPiker ,

While working with kangaroo2, the curve collide creates a duplicate curve if it is offset non-uniformly. Whereas the same curve when offset in a uniform manner seems to work normally while having 2 curve collides for different collision goals.
It seems that the collider knows that the curve should be linked via their centroid. But since I require a non uniform offset of the curve, the centroid moves, hence generating a secondary non linked curve.
Could you please help me out?
Duplicatecurves.gh (25.3 KB)

DuplicateCurve

The CurveCollide component allows input of custom frames for each curve.
If no frame is provided it defaults to the XY plane at the centroid, but you can choose a different plane.
If any 2 curves, rigid bodies, or rigid point-sets share the same frame, they get combined into a single rigid object.

So for your definition I think this is the behaviour you are looking for:
Duplicatecurves2.gh (22.5 KB)

6 Likes