Skip to content

RoseRahimi/Computational-Geometry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Computational-Geometry

This project explores computational geometry through interactive visualizations of polygons and point sets. The main focus is on different methods of triangulation and related geometric structures, implemented in Python and visualized with Plotly and ipywidgets.

Features

Sorted Points by Polar Angle and Distance Sorted Points by Polar Angle and Distance

Is point in triangle Is point in triangle

Center and radius ofthe circumcircle of the triangle Center and radius ofthe circumcircle of the triangle

Convex Hull Plot – compute and display convex hulls of a set of points. Convex Hull Plot

Convex Hull Triangulation – triangulate convex hull polygons. Convex Hull Triangulation

Triangle-Splitting Triangulation – recursively split triangles to incorporate interior points. Triangle-Splitting Triangulation

Delaunay Triangulation – generate Delaunay triangles. Delaunay Triangulation

Delaunay Triangulation with circumcircles. Alt text

Medial Axis Visualization – compute and display the medial axis of strictly convex polygons. Alt text

Interactive Widgets – change input points, toggle between triangulation methods, and adjust axes ranges in real-time. Interactive Widgets

Requirements

Python 3.9+

Plotly

ipywidgets

NumPy

SymPy (for medial axis / line intersection logic)

SciPy (for Delaunay triangulation)

Algorithms Implemented

Convex Hull (Graham Scan)

Convex Hull Triangulation

Triangle-Splitting Triangulation

Delaunay Triangulation (via SciPy)

Circumcircle Calculation

Medial Axis Approximation

About

This project explores computational geometry through interactive visualizations of polygons and point sets. The main focus is on different methods of triangulation and related geometric structures, implemented in Python and visualized with Plotly and ipywidgets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors