Oh I just saw fig.4 and its explanation. Doing that way, I think I could just add in the constraint like thisDevO wrote: This should be 3 point constrain only.
The only tricky part is actually properly creating this constrains.
The should be just like distance constrains that are used to replace bending constrains but are using middle point too.In this simple case you should have 6 bend constrains.Code: Select all
0-----1-----2 | | | 3-----4-----5 | | | 6-----7-----8
C(0,1,2), C(3,4,5), C(6,7,8), C(0,3,6), C(1,4,7), C(2,5,8).
Code: Select all
for(int j=0;j<numY;j++) {
for(int i=0;i<numX;i++) {
AddBendingConstraint(i+(j*numX), i+((j+1)*numX), i+((j+2)*numX), kBend);
AddBendingConstraint(j+(i*numY), j+((i+1)*numY), j+((i+2)*numY), kBend);
}
}