/*----------------------------------------------------------------------+ | Title: PolyhedronElement.java | | Java Class extends Element | | | | Author: David E. Joyce | | Department of Mathematics and Computer Science | | Clark University | | Worcester, MA 01610-1477 | | U.S.A. | | | | http://aleph0.clarku.edu/~djoyce/home.html | | djoyce@clarku.edu | | | | Date: May, 1997. | +----------------------------------------------------------------------*/ import java.awt.*; public class PolyhedronElement extends Element { int n; PolygonElement P[]; // array of polygons PolyhedronElement () { } public String toString() { return "[" + name + ": n=" + n + "]"; } protected boolean defined() { for (int i=0; i