/* Model3DPolyMesh.java
 * Author: David Wanqian Liu
 * Date: Dec 20, 1995
 */


/** Create a 3D model by define a polygon mesh */
class Model3DPolyMesh extends Model3D {
  /** Create a 3D frame model by passing in vertices and edges
   */
  Model3DPolyMesh(Vertex vertices[], int nvertices,
		  Edge edges[], int nedges,
		  Face faces[], int nfaces) {
    super();

    this.vertices = new Vertex[nvertices];
    for (int i=0; i<nvertices; i++) {
      this.vertices[i] = new Vertex(vertices[i]);
    }
    this.tvertices = vertices;
    this.nvertices = nvertices;

    this.edges = edges;
    this.nedges = nedges;

    this.faces = faces;
    this.nfaces = nfaces;
  }
}
