code: @SuppressWarnings("unused")
      private void allocateBuffers(int numVertices) {
          /*
           * the allocated buffers are native order direct byte buffers, so they
           * can be passed directly to LWJGL or similar graphics APIs
           */
  
          m_numVertices = numVertices;
  
          /* allocate for each vertex 3 floats */
          if (m_numVertices > 0) {
              m_vertices = ByteBuffer.allocateDirect(numVertices * 3 *
                      SIZEOF_FLOAT);
              m_vertices.order(ByteOrder.nativeOrder());
          }
  
      }
docs: This method is used by JNI. Do not call or modify.<p>
  
  Allocates byte buffers
  
  @param numVertices the number of vertices in the mesh
  @param numFaces the number of faces in the mesh
  @param optimizedFaces set true for optimized face representation
  @param faceBufferSize size of face buffer for non-optimized face
  representation