Package nu3a.geometry

Examples of nu3a.geometry.N3GeometryData


      throws Exception {
    String name = infoNode.getAttribute("name");
    Element data = (Element) infoNode.getElementsByTagName("geometry")
        .item(0);
    int index = Integer.parseInt(data.getAttribute("index"));
    N3GeometryData g = (N3GeometryData) resources.resourceAt(index);
    N3VisualMesh result = new N3VisualMesh(scene, g, name);

    data = (Element) infoNode.getElementsByTagName("collisionable").item(0);
    result.setCollisionable((new Boolean(data.getAttribute("value")))
        .booleanValue());
View Full Code Here


      throws Exception {
    String name = infoNode.getAttribute("name");
    Element data = (Element) infoNode.getElementsByTagName("geometry")
        .item(0);
    int index = Integer.parseInt(data.getAttribute("index"));
    N3GeometryData g = (N3GeometryData) resources.resourceAt(index);
    N3VisualLine result = new N3VisualLine(scene, g, name);

    data = (Element) infoNode.getElementsByTagName("collisionable").item(0);
    result.setCollisionable((new Boolean(data.getAttribute("value")))
        .booleanValue());
View Full Code Here

      throws Exception {
    String name = infoNode.getAttribute("name");
    Element data = (Element) infoNode.getElementsByTagName("geometry")
        .item(0);
    int index = Integer.parseInt(data.getAttribute("index"));
    N3GeometryData g = (N3GeometryData) resources.resourceAt(index);
    N3VisualPoint result = new N3VisualPoint(scene, g, name);

    data = (Element) infoNode.getElementsByTagName("collisionable").item(0);
    result.setCollisionable((new Boolean(data.getAttribute("value")))
        .booleanValue());
View Full Code Here

    N3TransformationNode sueloRot = new N3TransformationNode(scene, "sueloRot");
    N3TransformationNode sueloTrans;
    sueloRot.rotate(-90.0f, new N3Vector3D(1.0f, 0, 0));
    sueloRot.update();
    N3GeometryData g = N3GeometryData.createPlane(0.4f, 0.4f, new N3ColorRGBA(1, 0, 0), false);
    N3Material sm = new N3Material(scene, "rojo");
    sm.setAmbientColor(new N3ColorRGBA(1, 0, 0));
    sm.setSpecularColor(new N3ColorRGBA(0, 0, 0), 0.1f);
    sm.setDiffuseColor(new N3ColorRGBA(1, 0, 0));
    sm.applyMaterial(true);
View Full Code Here

TOP

Related Classes of nu3a.geometry.N3GeometryData

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.