Generating Fractal Baravelle Spirals: A Recursive Polygon Construction Project
This project focuses on creating Baravelle spirals by constructing nested polygons through a recursive process. The user can select the base polygon type, which is then used to generate smaller polygons at each midpoint of its sides, repeated iteratively. The technical approach includes designing user input for polygon selection, leveraging Java with NetBeans 5.0 as the development platform. Currently, the project can draw a simple triangle but still requires improvements in recursive generation and user interactivity, such as color customization.
Generating Fractal Baravelle Spirals: A Recursive Polygon Construction Project
E N D
Presentation Transcript
CS491 Robert Lai Winter 2006
Project name • Curve Bank Project • Baravelle Spirals • To create an n polygons and then with another 1/n polygon inside the polygon. Repeat the same step many times to create a tail like graph.
Technical approach • First of all, need to design what kind of polygon the user want to create. • Next, generate the base polygon and then from the mid-point of each sides of the base polygon create another of 1/n size of the same polygon.
Technical approach (2) • For examples:
Platform • Java NetBeans 5.0 • Open source • import java.io.*; • import java.awt.*; • import java.awt.event.*; • import java.awt.geom.*; • import javax.swing.*;
import java.io.*; • Provides for system input and output through data streams, serialization and the file system.
import java.awt.*; • Contains all of the classes for creating user interfaces and for painting graphics and images.
import java.awt.event.*; • Provides interfaces and classes for dealing with different types of events fired by AWT components.
import java.awt.geom.*; • Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry.
import javax.swing.*; • Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
Status • Able to draw a simple Triangle without user input • Still need to work on how to generate the polygon recursively • Need user input • Need color change