Examples of readFloatArray()


Examples of com.jme3.export.InputCapsule.readFloatArray()

//    m_Link = (Cell[]) capsule.readSavableArray("links", new Cell[3]);
    sav = capsule.readSavableArray("midpoints", new Vector3f[3]);
        for (int i = 0; i < sav.length; i++){
            m_WallMidpoint[i] = (Vector3f) sav[i];
        }
    m_WallDistance = capsule.readFloatArray("distances", new float[3])
  }

  //TODO RequestLink already sets the link
  public void checkAndLink(Cell cellB) {
    if (Link(Cell.SIDE_AB) == null
View Full Code Here

Examples of com.jme3.export.InputCapsule.readFloatArray()

    @Override
    public void read(JmeImporter im) throws IOException {
        InputCapsule ic = im.getCapsule(this);
        translations = (CompactVector3Array) ic.readSavable("translations", null);
        rotations = (CompactQuaternionArray) ic.readSavable("rotations", null);
        times = ic.readFloatArray("times", null);
        scales = (CompactVector3Array) ic.readSavable("scales", null);
    }
}
View Full Code Here

Examples of com.jme3.export.InputCapsule.readFloatArray()

    public void read(JmeImporter im) throws IOException {
        InputCapsule ic = im.getCapsule(this);
        mesh = (Mesh) ic.readSavable("mesh", null);
        root = (BIHNode) ic.readSavable("root", null);
        maxTrisPerNode = ic.readInt("tris_per_node", 0);
        pointData = ic.readFloatArray("points", null);
        triIndices = ic.readIntArray("indices", null);
    }
}
View Full Code Here

Examples of com.jme3.export.InputCapsule.readFloatArray()

        heightStickLength = capsule.readInt("heightStickLength", 0);
        heightScale = capsule.readFloat("heightScale", 0);
        minHeight = capsule.readFloat("minHeight", 0);
        maxHeight = capsule.readFloat("maxHeight", 0);
        upAxis = capsule.readInt("upAxis", 1);
        heightfieldData = capsule.readFloatArray("heightfieldData", new float[0]);
        flipQuadEdges = capsule.readBoolean("flipQuadEdges", false);
        createShape();
    }
}
View Full Code Here

Examples of com.jme3.export.InputCapsule.readFloatArray()

        // for backwards compatability
        Mesh mesh = (Mesh) capsule.readSavable("hullMesh", null);
        if (mesh != null) {
            this.points = getPoints(mesh);
        } else {
            this.points = capsule.readFloatArray("points", null);

        }
//        fbuf = ByteBuffer.allocateDirect(points.length * 4).asFloatBuffer();
//        fbuf.put(points);
//        fbuf = FloatBuffer.wrap(points).order(ByteOrder.nativeOrder()).asFloatBuffer();
View Full Code Here

Examples of com.jme3.export.InputCapsule.readFloatArray()

        offset = (Vector2f) ic.readSavable("offset", Vector3f.UNIT_XYZ);
        offsetAmount = ic.readFloat("offsetAmount", 0);
        //lodCalculator = (LodCalculator) ic.readSavable("lodCalculator", new DistanceLodCalculator());
        //lodCalculator.setTerrainPatch(this);
        //lodCalculatorFactory = (LodCalculatorFactory) ic.readSavable("lodCalculatorFactory", null);
        lodEntropy = ic.readFloatArray("lodEntropy", null);
        geomap = (LODGeomap) ic.readSavable("geomap", null);
       
        Mesh regen = geomap.createMesh(stepScale, new Vector2f(1,1), offset, offsetAmount, totalSize, false);
        setMesh(regen);
        //TangentBinormalGenerator.generate(this); // note that this will be removed
View Full Code Here

Examples of org.math.io.stream.BinaryInputStream.readFloatArray()

        BufferedInputStream bis = new BufferedInputStream(fis);

        BinaryInputStream bs = new BinaryInputStream(bis, bigEndian);

        return bs.readFloatArray();
    }

    /**
     * Read a binary File
     *
 
View Full Code Here

Examples of scalaSci.math.io.stream.BinaryInputStream.readFloatArray()

        } catch (FileNotFoundException ex) {
            throw new IllegalArgumentException(ex.toString());
        }
        BufferedInputStream bis = new BufferedInputStream(fis);
        BinaryInputStream bs = new BinaryInputStream(bis, bigEndian);
        return bs.readFloatArray();
    }

    /**
     * Read a binary File
     *
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.