Package com.ardor3d.util.export.binary

Examples of com.ardor3d.util.export.binary.BinaryExporter


        originalNode.attachChild(multiStrip);
        originalNode.attachChild(teapot);

        final ByteArrayOutputStream bos = new ByteArrayOutputStream();
        try {
            new BinaryExporter().save(originalNode, bos);
        } catch (final IOException e) {
            logger.log(Level.SEVERE, "BinaryExporter failed to save file", e);
        }

        originalNode.setTranslation(new Vector3(-80, 0, -400));
View Full Code Here


     * @throws IOException
     *             if we have troubles during the clone.
     */
    private MeshData copyMeshData(final MeshData meshData) throws IOException {
        final ByteArrayOutputStream bos = new ByteArrayOutputStream();
        final BinaryExporter exporter = new BinaryExporter();
        exporter.save(meshData, bos);
        bos.flush();
        final ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
        final BinaryImporter importer = new BinaryImporter();
        final Savable sav = importer.load(bis);
        return (MeshData) sav;
View Full Code Here

TOP

Related Classes of com.ardor3d.util.export.binary.BinaryExporter

Copyright © 2018 www.massapicom. 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.