Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Latest commit

 

History

History
121 lines (69 loc) · 2.26 KB

README.md

File metadata and controls

121 lines (69 loc) · 2.26 KB

CG-LaboratoryWorks

Computer Graphics — Laboratory Works (Java 1.8 + Gradle + libGDX)


Move Polygon

Polygon move and rotation actions by some trajectory

To open this scene: Left "Ctrl" + "1"

Hotkeys

  1. "K" – switch on/off all coordinate values
  2. "S" – show static frame of the scene
  3. "C" – clear all points
  4. "Z" – remove last added a point
  5. "Space" [only CUSTOM mode] – move polygon by a trajectory

Screen

view_move_polygon


Bezier Lines

Quadratic Bezier lines

To open this scene: Left "Ctrl" + "2"

Hotkeys

  1. "K" – switch on/off all coordinate values
  2. "C" – clear all points
  3. "Z" – remove last added a point

Screen

view_bezier


Reflection

Reflection of the circle via line

To open this scene: Left "Ctrl" + "3"

Hotkeys

  1. "K" – switch on/off all coordinate values
  2. "B" – move the original circle object (red)
  3. "S" – move the small point

Screen

view_reflection


Lines Intersection

Lines intersection by 4 points

To open this scene: Left "Ctrl" + "4"

Hotkeys

  1. "K" – switch on/off all coordinate values
  2. "R" – choose 4 points through a random generator

Screen

view_lines_intersection


Cycloid

Cycloid move and rotation actions by a trajectory of some shape

To open this scene: Left "Ctrl" + "5"

Hotkeys

  1. "K" – switch on/off all coordinate values
  2. "V" – switch on/off a trajectory

Screen

view_cycloid


Cut Polygon

Cut complex polygon as a set of some simple shapes

To open this scene: Left "Ctrl" + "6"

Hotkeys

  1. "K" – switch on/off all coordinate values

Screen

view_cut_polygon


How to launch

  1. Import the project through IntelliJ IDEA as based-on Gradle project
  2. Add configuration for launch:
    1. Main class: store.vxdesign.cg.desktop.DesktopLauncher
    2. Working directory: ./CG-LaboratoryWorks/core/assets
    3. Use classpath of module: CG-LaboratoryWorks.desktop.main
    4. JRE: 1.8
  3. Launch the project