}
if (useWireframeFallback) {
// for polyhedral shapes
if (shape.isPolyhedral()) {
PolyhedralConvexShape polyshape = (PolyhedralConvexShape) shape;
gl.glBegin(GL_LINES);
Vector3f a = vectorsPool.get(), b = vectorsPool.get();
int i;
for (i = 0; i < polyshape.getNumEdges(); i++) {
polyshape.getEdge(i, a, b);
gl.glVertex3f(a.x, a.y, a.z);
gl.glVertex3f(b.x, b.y, b.z);
}
gl.glEnd();