Example usage for javax.media.j3d Shape3D ALLOW_GEOMETRY_WRITE

List of usage examples for javax.media.j3d Shape3D ALLOW_GEOMETRY_WRITE

Introduction

In this page you can find the example usage for javax.media.j3d Shape3D ALLOW_GEOMETRY_WRITE.

Prototype

int ALLOW_GEOMETRY_WRITE

To view the source code for javax.media.j3d Shape3D ALLOW_GEOMETRY_WRITE.

Click Source Link

Document

Specifies that the node allows write access to its geometry information.

Usage

From source file:FourByFour.java

public BigCube(Appearance appearance, float size) {

    QuadArray quadArray = new QuadArray(24, QuadArray.COORDINATES | QuadArray.NORMALS);

    for (int i = 0; i < 72; i++)
        verts[i] *= size;//from w  w w .j  ava  2s .com

    quadArray.setCoordinates(0, verts);
    quadArray.setNormals(0, normals);

    shape3D = new Shape3D(quadArray, appearance);
    shape3D.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
    shape3D.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
    shape3D.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
    shape3D.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
}