// Java 3Dテスト用プログラム // NormalRedner.java // Copyright (c) 1999 ENDO Yasuyuki // mailto:yasuyuki@javaopen.org // http://www.javaopen.org/j3dbook/index.html import javax.media.j3d.*; import javax.vecmath.*; public class NormalRender { private LineArray nline = null; public NormalRender(GeometryArray geom) { this(geom, 1.0f); } public NormalRender(GeometryArray geom, float scale) { Point3f[] vertices = new Point3f[geom.getVertexCount()]; Vector3f[] normals = new Vector3f[geom.getVertexCount()]; for (int i=0; i