Coder Social home page Coder Social logo

testsubjector / compgeometry2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 96.71 MB

Computational Geometry Algorithms for an undergradute course

Makefile 0.09% C++ 1.76% C 0.11% xBase 0.04% Python 0.34% Charity 13.77% HTML 77.59% JavaScript 4.46% CSS 1.83%

compgeometry2's Introduction

Implementation of multiple convex hull algorithms done in C++.

Directory Reference

.
├── benchmark
├── include
│   ├── convex_hull_structs.h
│   ├── graham_scan.h
│   ├── jmarch.h
│   └── kirkpatrickseidel.h
├── Makefile
├── output
├── PythonComplexVisualiser.py
├── PythonSimpleVisualiser.py
├── README.md
├── reference_kps.py
├── src
│   ├── centralcode.cpp
│   ├── convex_hull_structs.cpp
│   ├── graham_scan.cpp
│   ├── jmarch.cpp
│   └── kirkpatrickseidel.cpp
├── test
│   ├── specialcase.txt
│   ├── testcase1.txt
│   ├── testcase2.txt
│   └── testcase3.txt
├── ValgrindReport.md
└── visuals
    ├── outputGraham.gif
    ├── outputJarvis.gif
    └── outputKirkPatrickSeidel.gif

Compiling

make

Remove Build Files

make clean

Using Convex Hull Algorithm

> ./run_daa a [1]
    where a =   g, for Graham Scan
                j, for Jarvis March
                k, for KirkPatrick Seidel
    where [1] is an optional argument which creates necessary files required for complex visuliasation output.
> /path/to/file/containing/input/points
/* Example  - Enter input file path: /home/user/test/testcase2.txt */

Visualisation

python3 PythonSimpleVisualiser.py "path/to/outputfile/" # Simple
python3 PythonComplexVisualiser.py "path/to/outputfile/" # Step-by-Step

Documentation

Can be accessed by opening "html/index.html" file. Made with doxygen.

References -

compgeometry2's People

Contributors

testsubjector avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.