.. | .. |
---|
381 | 381 | try |
---|
382 | 382 | { |
---|
383 | 383 | //font = FontRender.createFont("Dialog", 11, false, true); |
---|
384 | | - font = new FontRender.GLFont(gl, GrafreeD.class.getResourceAsStream("DejaVu_Sans_11.fnt")); |
---|
| 384 | + font = new FontRender.GLFont(gl, Grafreed.class.getResourceAsStream("DejaVu_Sans_11.fnt")); |
---|
385 | 385 | } catch (java.io.IOException e) |
---|
386 | 386 | { |
---|
387 | 387 | e.printStackTrace(); |
---|
.. | .. |
---|
557 | 557 | bRep.startvertices = new int[numObjects]; |
---|
558 | 558 | bRep.averagepoints = new float[(bRep.startvertices.length-1) * 3]; |
---|
559 | 559 | bRep.extremepoints = new float[(bRep.startvertices.length-1) * 3]; |
---|
560 | | - bRep.supportsizes = new float[(bRep.startvertices.length-1)]; |
---|
| 560 | + bRep.supportminsize = new float[(bRep.startvertices.length-1)]; |
---|
| 561 | + bRep.supportmaxsize = new float[(bRep.startvertices.length-1)]; |
---|
561 | 562 | buildrep = true; |
---|
562 | 563 | |
---|
563 | 564 | initialmatrices = new ObjectArrayList<Transform>(); |
---|
.. | .. |
---|
873 | 874 | |
---|
874 | 875 | if (shape.getShapeType() == BroadphaseNativeType.COMPOUND_SHAPE_PROXYTYPE) |
---|
875 | 876 | { |
---|
| 877 | + new Exception().printStackTrace(); |
---|
876 | 878 | System.exit(0); |
---|
877 | 879 | CompoundShape compoundShape = (CompoundShape) shape; |
---|
878 | 880 | Transform childTrans = transformsPool.get(); |
---|
.. | .. |
---|
903 | 905 | { |
---|
904 | 906 | case BOX_SHAPE_PROXYTYPE: |
---|
905 | 907 | { |
---|
| 908 | + new Exception().printStackTrace(); |
---|
906 | 909 | System.exit(0); |
---|
907 | 910 | BoxShape boxShape = (BoxShape) shape; |
---|
908 | 911 | Vector3f halfExtent = boxShape.getHalfExtentsWithMargin(vectorsPool.get()); |
---|
.. | .. |
---|
914 | 917 | } |
---|
915 | 918 | case SPHERE_SHAPE_PROXYTYPE: |
---|
916 | 919 | { |
---|
| 920 | + new Exception().printStackTrace(); |
---|
917 | 921 | System.exit(0); |
---|
918 | 922 | SphereShape sphereShape = (SphereShape) shape; |
---|
919 | 923 | float radius = sphereShape.getMargin(); // radius doesn't include the margin, so draw with margin |
---|
.. | .. |
---|
960 | 964 | |
---|
961 | 965 | case STATIC_PLANE_PROXYTYPE: |
---|
962 | 966 | { |
---|
| 967 | + new Exception().printStackTrace(); |
---|
963 | 968 | System.exit(0); |
---|
964 | 969 | StaticPlaneShape staticPlaneShape = (StaticPlaneShape) shape; |
---|
965 | 970 | float planeConst = staticPlaneShape.getPlaneConstant(); |
---|
.. | .. |
---|
1006 | 1011 | |
---|
1007 | 1012 | case CYLINDER_SHAPE_PROXYTYPE: |
---|
1008 | 1013 | { |
---|
| 1014 | + new Exception().printStackTrace(); |
---|
1009 | 1015 | System.exit(0); |
---|
1010 | 1016 | CylinderShape cylinder = (CylinderShape) shape; |
---|
1011 | 1017 | int upAxis = cylinder.getUpAxis(); |
---|
.. | .. |
---|
1220 | 1226 | } |
---|
1221 | 1227 | else |
---|
1222 | 1228 | { |
---|
1223 | | - if (bRep.averagepoints == null || bRep.extremepoints == null || bRep.supportsizes == null) |
---|
| 1229 | + if (bRep.averagepoints == null || bRep.extremepoints == null || bRep.supportminsize == null || bRep.supportmaxsize == null) |
---|
1224 | 1230 | { |
---|
1225 | 1231 | bRep.averagepoints = new float[(bRep.startvertices.length-1) * 3]; |
---|
1226 | 1232 | bRep.extremepoints = new float[(bRep.startvertices.length-1) * 3]; |
---|
1227 | | - bRep.supportsizes = new float[(bRep.startvertices.length-1)]; |
---|
| 1233 | + bRep.supportminsize = new float[(bRep.startvertices.length-1)]; |
---|
| 1234 | + bRep.supportmaxsize = new float[(bRep.startvertices.length-1)]; |
---|
1228 | 1235 | } |
---|
1229 | 1236 | |
---|
1230 | 1237 | float averagex = 0; |
---|
.. | .. |
---|
1294 | 1301 | } |
---|
1295 | 1302 | } |
---|
1296 | 1303 | |
---|
1297 | | - bRep.supportsizes[currentobject-1] = (float)Math.sqrt(mindist2); |
---|
| 1304 | + bRep.supportminsize[currentobject-1] = (float)Math.sqrt(mindist2); |
---|
| 1305 | + bRep.supportmaxsize[currentobject-1] = (float)Math.sqrt(maxdist2); |
---|
1298 | 1306 | } |
---|
1299 | 1307 | |
---|
1300 | 1308 | // if (hull.numTriangles() > 0) |
---|
.. | .. |
---|
1358 | 1366 | // for polyhedral shapes |
---|
1359 | 1367 | if (shape.isPolyhedral()) |
---|
1360 | 1368 | { |
---|
| 1369 | + new Exception().printStackTrace(); |
---|
1361 | 1370 | System.exit(0); |
---|
1362 | 1371 | PolyhedralConvexShape polyshape = (PolyhedralConvexShape) shape; |
---|
1363 | 1372 | |
---|
.. | .. |
---|
1427 | 1436 | if (shape.isConcave())//>getShapeType() == TRIANGLE_MESH_SHAPE_PROXYTYPE||shape->getShapeType() == GIMPACT_SHAPE_PROXYTYPE) |
---|
1428 | 1437 | // if (shape->getShapeType() == TRIANGLE_MESH_SHAPE_PROXYTYPE) |
---|
1429 | 1438 | { |
---|
| 1439 | + new Exception().printStackTrace(); |
---|
1430 | 1440 | System.exit(0); |
---|
1431 | 1441 | ConcaveShape concaveMesh = (ConcaveShape) shape; |
---|
1432 | 1442 | //btVector3 aabbMax(btScalar(1e30),btScalar(1e30),btScalar(1e30)); |
---|