21 #ifndef _CONTACT_UTILS_H_
22 #define _CONTACT_UTILS_H_
24 #include "mbsim/contact.h"
25 #include "mbsim/contour.h"
26 #include "mbsim/contours/contour_interpolation.h"
27 #include "mbsim/dynamic_system_solver.h"
73 contour[0] = contour0;
74 contour[1] = contour1;
75 std::string contactName = contact->
getName();
79 case 0: cStart = 0; cEnd = 1;
break;
80 case 1: cStart = 1; cEnd = 1;
break;
81 case 2: cStart = 0; cEnd = 0;
break;
84 for(
int c = cStart;c<cEnd+1;c++) {
88 case 0: contourName =
'A';
break;
89 case 1: contourName =
'B';
break;
91 for(
int i = 0;i<numberOfPoints; i++) {
92 std::stringstream number;
93 std::string name = contactName + number.str();
95 T *newContact =
new T( contact , name );
97 newContact->connect(contour[c]->getPoint(i),contour[1-c]);