if(connected && closed && children.length >= 0){
if(curved) {
ArrayList<TypedPoint> res = new ArrayList<TypedPoint>();
for(int i = 0 ; i < children.length ; i++){
res.add(new TypedPoint(children[i].globalLocation.getX() + children[i].prop.getReal(HCONNECT) * children[i].size.getX(),
children[i].globalLocation.getY() + children[i].prop.getReal(VCONNECT) * children[i].size.getY(),TypedPoint.kind.CURVED));
}
Interpolation.solve(res, true);
p.moveTo(Interpolation.P0[0].x, Interpolation.P0[0].y);