Package com.eteks.sweethome3d.model

Examples of com.eteks.sweethome3d.model.Home


    }
    for (Room room : home.getRooms()) {
      exportNode((Node)object3DFactory.createObject3D(home, room, true), true, false, silk);
    }
    // Create a dummy home to export a ground 3D not cut by rooms and large enough to join the sky at the horizon 
    Home groundHome = new Home();
    groundHome.getEnvironment().setGroundColor(home.getEnvironment().getGroundColor());
    groundHome.getEnvironment().setGroundTexture(home.getEnvironment().getGroundTexture());
    Ground3D ground = new Ground3D(groundHome, -1E7f / 2, -1E7f / 2, 1E7f, 1E7f, true);
    Transform3D translation = new Transform3D();
    translation.setTranslation(new Vector3f(0, -0.1f, 0));
    TransformGroup groundTransformGroup = new TransformGroup(translation);
    groundTransformGroup.addChild(ground);
View Full Code Here

TOP

Related Classes of com.eteks.sweethome3d.model.Home

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.