JSci.awt
Class Model3D

java.lang.Object
  extended by JSci.awt.Model3D

 class Model3D
extends java.lang.Object


Field Summary
(package private)  int[] con
           
(package private)  Matrix3D mat
           
(package private)  int maxcon
           
(package private)  int maxvert
           
(package private)  int ncon
           
(package private)  int nvert
           
(package private)  boolean transformed
           
(package private)  int[] tvert
           
(package private)  float[] vert
           
(package private)  float xmax
           
(package private)  float xmin
           
(package private)  float ymax
           
(package private)  float ymin
           
(package private)  float zmax
           
(package private)  float zmin
           
 
Constructor Summary
Model3D()
           
 
Method Summary
(package private)  void addLine(int p1, int p2)
          Add a line from vertex p1 to vertex p2
(package private)  int addVertex(float x, float y, float z)
          Add a vertex to this model
(package private)  void compress()
          eliminate duplicate lines
(package private)  void findBoundingBox()
          Find the bounding box of this model
(package private)  void paint(java.awt.Graphics g)
           
(package private)  void transform()
          Transform all the points in this model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vert

float[] vert

tvert

int[] tvert

nvert

int nvert

maxvert

int maxvert

con

int[] con

ncon

int ncon

maxcon

int maxcon

transformed

boolean transformed

mat

Matrix3D mat

xmin

float xmin

xmax

float xmax

ymin

float ymin

ymax

float ymax

zmin

float zmin

zmax

float zmax
Constructor Detail

Model3D

Model3D()
Method Detail

addVertex

int addVertex(float x,
              float y,
              float z)
Add a vertex to this model


addLine

void addLine(int p1,
             int p2)
Add a line from vertex p1 to vertex p2


transform

void transform()
Transform all the points in this model


compress

void compress()
eliminate duplicate lines


paint

void paint(java.awt.Graphics g)

findBoundingBox

void findBoundingBox()
Find the bounding box of this model