Example usage for javax.media.j3d GeometryArray getVertexCount

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

Introduction

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

Prototype

public int getVertexCount() 

Source Link

Document

Retrieves the number of vertices in this GeometryArray

Usage

From source file:MyJava3D.java

public void renderLineArray(Graphics graphics, GeometryUpdater updater, GeometryArray geometryArray) {
    for (int n = 0; n < geometryArray.getVertexCount(); n += 2)
        drawLine(graphics, updater, geometryArray, n);
}

From source file:MyJava3D.java

public void renderPointArray(Graphics graphics, GeometryUpdater updater, GeometryArray geometryArray) {
    for (int n = 0; n < geometryArray.getVertexCount(); n++)
        drawPoint(graphics, updater, geometryArray, n);
}

From source file:MyJava3D.java

public void renderQuadArray(Graphics graphics, GeometryUpdater updater, GeometryArray geometryArray) {
    for (int n = 0; n < geometryArray.getVertexCount(); n += 4)
        drawQuad(graphics, updater, geometryArray, n);
}

From source file:MyJava3D.java

public void renderTriangleArray(Graphics graphics, GeometryUpdater updater, GeometryArray geometryArray) {
    for (int n = 0; n < geometryArray.getVertexCount(); n += 3)
        drawTriangle(graphics, updater, geometryArray, n);
}