GithubHelp home page GithubHelp logo

szaross / geometric-algorithms-project Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.29 MB

Point Location in Two-Dimensional Space Using Separator Method

Jupyter Notebook 98.39% Python 1.61%
geometric-algorithms point-location

geometric-algorithms-project's Introduction

Point Location in Two-Dimensional Space Using Separator Method

Description

This project is developed as an educational tool to teach and demonstrate the algorithm for locating a point in a two-dimensional space using the separator method. The algorithm determines in which polygonal subdivision element a given point P on the plane is located.

Technologies

Features

  • Loading a region with a polygonal subdivision from a user interface.
  • Entering the point P by the user.
  • Graphical presentation of the algorithm's steps:
    • Showing the space division.
    • Highlighting point P and tracking the localization path within the structure.
  • Visualization of the result โ€“ indicating the element containing point P.

How to Run?

  1. Clone the repository
  2. Install required dependencies requirements.txt
  3. You can either use one of our premade polygon divisions saved in raw.py. Should you want to use your own one, add it to the file, please follow the definition
  4. Follow usage examples

Regular Subdivision Definition

Let the set of vertices in the subdivision form an ordered sequence with respect to the y-coordinate (in case of equal values, with respect to the x-coordinate).

A vertex (v_k) is considered regular if there exist edges ( (v_i,v_k) ) and ( (v_k,v_j) ) for (i < k < j). A subdivision is regular if all vertices in the sequence, except for the first and last, are regular.

Usage Examples

You can find usage examples at the end of the Jupyter Notebook (main.ipynb)

Authors

geometric-algorithms-project's People

Contributors

gahson avatar szaross avatar

Stargazers

 avatar

Watchers

 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.