- [ arrow keys ] : x,y translation
- [ . / ] : zoom in / out
- [ z x ] : rotate
- [ space ] : reset
![]() |
| Java Applet |
My Geometry class has methods for the construction of a prism, cylinder, super sphere, super torus, regular polygon, circle, boy surface, seashell, nautilus, cross-cap, Dini's surface, Enneper's surface, Klein bottle, Mobius strip, random hills, roman surface, and 2d mesh. I assume we will learn how to fix the shading and drawing order issue next class.
I'm currently using a Java hack to define anonymous functions. I have a class called Function that lets you define a method to return a double array. This allows the user to generate any paramaterized surface using my Geometry class. I'm probably going to get rid of its explicit use in Geometry.java code because it generates a million class files upon compiling, but before I change anything I'm going to wait and see how we are supposed to shade our objects.
___________________________________________________________________________________
Download HW4.zip
Download HW4_Szymczak.java
Download Geometry.java

No comments:
Post a Comment