17 std::vector<steeringAction> act;
19 for (
unsigned int x = 0; x < act.size(); x++)
23 neighbors.push_back(s);
96 {
if (node1 == node2)
return 0;
return 1; }
103 {
return node == goal; }
107 { assert(
false);
return 3; }
110 { assert(
false);
return 3; }
116 glColor4f(0.0, 0.0, 1.0, 1.0);
117 glBegin(GL_LINE_LOOP);
118 glVertex3f(-1.0, -1.0, 0);
119 glVertex3f(+1.0, -1.0, 0);
120 glVertex3f(+1.0, +1.0, 0);
121 glVertex3f(-1.0, +1.0, 0);
128 GLdouble xx, yy, zz, rad;
146 glBegin(GL_TRIANGLES);
148 surfaceNormal.
x = (((-0.5*xoffset) * (-rad)) - ((+rad) - (-2*yoffset)));
149 surfaceNormal.
y = (((rad) * (-2*xoffset)) - ((0.5*yoffset) - (rad)));
150 surfaceNormal.
z = (((0.5*yoffset) * (-2*yoffset)) - ((-0.5*xoffset) - (-2*xoffset)));
152 glNormal3f(surfaceNormal.
x, surfaceNormal.
y, surfaceNormal.
z);
153 glColor4f(r, g, b/2, t);
154 glVertex3f(xx+xoffset, yy+yoffset, zz);
155 glColor4f(r, g/2, b, t);
156 glVertex3f(xx-xoffset, yy-yoffset, zz-rad);
157 glColor4f(r, g, b/2, t);
158 glVertex3f(xx-xoffset+0.5*yoffset, yy-yoffset-0.5*xoffset, zz);
160 surfaceNormal.
x = (((+0.5*xoffset) * (-rad)) - ((+rad) - (-2*yoffset)));
161 surfaceNormal.
y = (((rad) * (-2*xoffset)) - ((-0.5*yoffset) - (rad)));
162 surfaceNormal.
z = (((-0.5*yoffset) * (-2*yoffset)) - ((+0.5*xoffset) - (-2*xoffset)));
164 glNormal3f(surfaceNormal.
x, surfaceNormal.
y, surfaceNormal.
z);
165 glColor4f(r, g/2, b, t);
166 glVertex3f(xx+xoffset, yy+yoffset, zz);
167 glColor4f(r, g, b/2, t);
168 glVertex3f(xx-xoffset, yy-yoffset, zz-rad);
169 glColor4f(r, g/2, b, t);
170 glVertex3f(xx-xoffset-0.5*yoffset, yy-yoffset+0.5*xoffset, zz);
176 GLdouble xx, yy, zz, rad;
194 glBegin(GL_TRIANGLES);
196 surfaceNormal.
x = (((-0.5*xoffset) * (-rad)) - ((+rad) - (-2*yoffset)));
197 surfaceNormal.
y = (((rad) * (-2*xoffset)) - ((0.5*yoffset) - (rad)));
198 surfaceNormal.
z = (((0.5*yoffset) * (-2*yoffset)) - ((-0.5*xoffset) - (-2*xoffset)));
200 glNormal3f(surfaceNormal.
x, surfaceNormal.
y, surfaceNormal.
z);
201 glColor4f(r, g, b/2, t);
202 glVertex3f(xx+xoffset, yy+yoffset, zz);
203 glColor4f(r, g/2, b, t);
204 glVertex3f(xx-xoffset, yy-yoffset, zz-rad);
205 glColor4f(r, g, b/2, t);
206 glVertex3f(xx-xoffset+0.5*yoffset, yy-yoffset-0.5*xoffset, zz);
208 surfaceNormal.
x = (((+0.5*xoffset) * (-rad)) - ((+rad) - (-2*yoffset)));
209 surfaceNormal.
y = (((rad) * (-2*xoffset)) - ((-0.5*yoffset) - (rad)));
210 surfaceNormal.
z = (((-0.5*yoffset) * (-2*yoffset)) - ((+0.5*xoffset) - (-2*xoffset)));
212 glNormal3f(surfaceNormal.
x, surfaceNormal.
y, surfaceNormal.
z);
213 glColor4f(r, g/2, b, t);
214 glVertex3f(xx+xoffset, yy+yoffset, zz);
215 glColor4f(r, g, b/2, t);
216 glVertex3f(xx-xoffset, yy-yoffset, zz-rad);
217 glColor4f(r, g/2, b, t);
218 glVertex3f(xx-xoffset-0.5*yoffset, yy-yoffset+0.5*xoffset, zz);