Skip to content

jodi-ivan/cyrus-beck-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cyrus–Beck Algorithm Implementation

An interactive VB.NET implementation of the Cyrus–Beck line clipping algorithm with a visual GUI.


📌 Note on Project Origin

This project was originally developed as my 2D Computer Graphics & Animation course assignment in May 2015.

In 2025, I migrated the project from an old local disk into GitHub. Commit timestamps therefore reflect the upload date, not the original development timeline.


👀 Overview

A small graphical application demonstrating the Cyrus–Beck line clipping algorithm, showing how lines and points are clipped against a convex polygon using interactive mouse input.


Features

  • Draw a polygon, set of dots, and lines directly on the canvas using mouse input
  • Automatic convex / non-convex detection of the clipping region
  • Visual indicators showing clipped vs non-clipped geometry
  • Tree-view panel to inspect all clipped elements
  • Export canvas to file and re-load it later

🖼 Screenshots

Clipping Example

Clipping

Convex Detection

Convex