//add a new contact generator to this contact constraint
ContactGenerator generator = getContactGenerator(geometrypair);
contactGenerators.put(geometrypair, generator);
contactConstraint.addGenerator(generator);
//no contact constraint is present
} else {
//do not act if some other constraint(joint) is already present
//in the contact graph