A constraint which limits the sum of the angles to a certain value

Hello everyone,

Is there a way to build such a constraint which limits the sum of the angles to a certain value ?
image
As shown in the pic, 4 quad meshes (not necessarily have all 90degree coners) can rotates into a compact shape by solving an optimization with the constraint.
I tried kangaroo, but the kangaroo angle constraints cannot build relations among multiple angles.

Thanks,
Yang

Thank you, sir!
I think it will help. I’ll try it now.

1 Like