Example usage for javax.media.j3d QuadArray subclass-usage

List of usage examples for javax.media.j3d QuadArray subclass-usage

Introduction

In this page you can find the example usage for javax.media.j3d QuadArray subclass-usage.

Usage

From source file Pyramid2Cube.java

class ColorPyramidUp extends QuadArray {
    private static final float[] verts = {
            // front face
            1.0f, -1.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 0.0f, -1.0f, -1.0f, 1.0f,
            // back face
            -1.0f, -1.0f, -1.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, -1.0f, -1.0f,

From source file IntersectTest.java

class RandomColorCube extends QuadArray {
    RandomColorCube() {
        super(24, GeometryArray.COORDINATES | GeometryArray.COLOR_3);

        Point3f verts[] = new Point3f[8];
        Color3f colors[] = new Color3f[3];

From source file PickTest.java

class CubeQA extends QuadArray {
    CubeQA() {
        super(24, GeometryArray.COORDINATES | GeometryArray.COLOR_3);

        Point3f verts[] = new Point3f[8];
        Color3f colors[] = new Color3f[6];