@Test public void testDungeon() throws IOException { InputStream is = getClass().getClassLoader().getResourceAsStream("dungeon_all_tiles_navmesh.bin"); NavMesh mesh = reader.read(is, 6); assertEquals(128, mesh.getMaxTiles()); assertEquals(0x8000, mesh.getParams().maxPolys); assertEquals(9.6, mesh.getParams().tileWidth, 0.001); List<MeshTile> tiles = mesh.getTilesAt(6, 9); assertEquals(1, tiles.size()); assertEquals(2, tiles.get(0).data.polys.length); assertEquals(7 * 3, tiles.get(0).data.verts.length); tiles = mesh.getTilesAt(2, 9); assertEquals(1, tiles.size()); assertEquals(2, tiles.get(0).data.polys.length); assertEquals(9 * 3, tiles.get(0).data.verts.length); tiles = mesh.getTilesAt(4, 3); assertEquals(1, tiles.size()); assertEquals(3, tiles.get(0).data.polys.length); assertEquals(6 * 3, tiles.get(0).data.verts.length); tiles = mesh.getTilesAt(2, 8); assertEquals(1, tiles.size()); assertEquals(5, tiles.get(0).data.polys.length); assertEquals(17 * 3, tiles.get(0).data.verts.length); }
public NavMesh read(InputStream is, int maxVertPerPoly) throws IOException { return read(IOUtils.toByteBuffer(is), maxVertPerPoly, false); }
MeshSetReader { public NavMesh read(InputStream is, int maxVertPerPoly) throws IOException { return read(IOUtils.toByteBuffer(is), maxVertPerPoly, false); } }
MeshSetReader { public NavMesh read(InputStream is, int maxVertPerPoly) throws IOException { return read(IOUtils.toByteBuffer(is), maxVertPerPoly, false); }  }
MeshSetReader { public NavMesh read(InputStream is, int maxVertPerPoly) throws IOException { return read(IOUtils.toByteBuffer(is), maxVertPerPoly, false); }  NavMesh read(InputStream is, int maxVertPerPoly); NavMesh read(ByteBuffer bb, int maxVertPerPoly); NavMesh read32Bit(InputStream is, int maxVertPerPoly); NavMesh read32Bit(ByteBuffer bb, int maxVertPerPoly); NavMesh read(InputStream is); NavMesh read(ByteBuffer bb); }
MeshSetReader { public NavMesh read(InputStream is, int maxVertPerPoly) throws IOException { return read(IOUtils.toByteBuffer(is), maxVertPerPoly, false); }  NavMesh read(InputStream is, int maxVertPerPoly); NavMesh read(ByteBuffer bb, int maxVertPerPoly); NavMesh read32Bit(InputStream is, int maxVertPerPoly); NavMesh read32Bit(ByteBuffer bb, int maxVertPerPoly); NavMesh read(InputStream is); NavMesh read(ByteBuffer bb);  }