List of usage examples for javax.media.j3d GeometryArray getVertexCount
public int getVertexCount()
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); }