Skip to content

About

Java Swing isometric triangular-grid editor with live structural & thermal readouts

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

MITProject

A Java Swing sketchpad for prototyping isometric triangular-grid structures, with live structural and thermal readouts as you draw.

The editor: red and blue triangles on an isometric grid, anchor support-load overlays, and a controls panel reading out center of gravity and percent blue

Built for an MIT-originated design project given at Tesla STEM High School. You place "delta" triangles — red or blue, pointing up or down — on an isometric grid, drop up to two anchor points, and the app continuously recomputes and overlays the structure's properties: its center of gravity, the reaction load carried by each anchor, its composition, and (in thermal mode) an average temperature driven by the radiating elements.

Features

  • Isometric grid editor — click to add or remove triangular elements, with orthogonal↔isometric coordinate mapping and a translucent preview of the element under the cursor.
  • Four element types — red/blue × up/down, chosen from the controls panel; right-click flips orientation, double-click sets an element's radiating length.
  • Structural analysis — live center of gravity plus per-anchor support reaction loads, computed from the center of gravity and each anchor's distance (a two-support moment balance).
  • Thermal analysis — toggle to an average-temperature readout derived from the counts of red and radiating elements and their mean radiating length.
  • Composition metric — a running "percent blue" over all placed elements.
  • Unit-tested center-of-gravity calculation (JUnit 4).

Run it

# from the MitProject/ directory (JDK 8+; developed against Java 8)
javac -d bin $(find src -name '*.java')
java -cp bin main.gui.UserInterface

How it works

  • model/ holds the data. Grid stores an Optional<Delta> per cell plus a set of anchor points, owns the orthogonal↔isometric transforms, and paints the grid and its triangles; DeltaType enumerates the four red/blue × up/down variants.
  • calculations/ is pure logic. StructuralCalculations computes center of gravity and anchor support loads; ThermalCalculations computes the average temperature.
  • gui/ wires it together with Swing. UserInterface is the drawing canvas and input handler; ControlDisplayPanel is the tool/mode chooser and text readout.

Tech: Java 8, Swing/AWT, JUnit 4.

About

Java Swing isometric triangular-grid editor with live structural & thermal readouts

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages