Example usage for javax.media.j3d GeometryArray getCoordinates

List of usage examples for javax.media.j3d GeometryArray getCoordinates

Introduction

In this page you can find the example usage for javax.media.j3d GeometryArray getCoordinates.

Prototype

public void getCoordinates(int index, Point3d coordinates[]) 

Source Link

Document

Gets the coordinates associated with the vertices starting at the specified index for this object.

Usage

From source file:MyJava3D.java

public void drawQuad(Graphics graphics, GeometryUpdater updater, GeometryArray geometryArray, int index) {
    for (int n = 0; n < 4; n++)
        updater.update(graphics, this, geometryArray, index + n, frameNumber);

    geometryArray.getCoordinates(index, pointArray);

    for (int n = 0; n < 4; n++)
        projectPoint(pointArray[n], projectedPointArray[n]);

    drawQuad(graphics, geometryArray, index, projectedPointArray);
}