Skip to content

Objective: To find visible polygon vertices to a point inside the polygon using python libraries.

License

Notifications You must be signed in to change notification settings

Sharath0812/Points-Visibility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computation Graphic Algorithm Library - Python

This code involves using the Shapely library to create a closed polygon with randomly generated vertices and Matplotlib to visualize the polygon. The key functionalities include:

  • Generating a closed polygon with a specified number of random vertices.
  • Plotting lines from a random point within the polygon to each of its vertices.
  • Identifying and visualizing non-intersecting lines from the internal point to the polygon vertices.
  • Visualizing the polygon, lines from the vertex, and non-intersecting lines using Matplotlib. The code objective is to find the vertices visible to the internal point by using geometric algorithms, visualizing it in plots, and the integration of different Python libraries to perform complex spatial analysis.

Plots

Libraries Required - Matplotlib, Random, Shapely(LineString, Point, Polygon)

Install Visual Studio code

  1. Download Visual Studio Code
  1. Run the Installer
  • Once downloaded, double-click on the installer executable file to run it.
  • Read and accept the license agreement, then click "Next".
  • Select the destination folder where you want to install VS Code, or use the default location. Click "Next".
  • Select any additional tasks you want, such as creating a desktop shortcut or adding to the context menu. Click "Next".
  • Click "Install" to begin the installation process.
  1. Launch Visual Studio Code
  • Once the installation is complete, click "Finish" to exit the installer.
  • Visual Studio Code should now launch automatically. If not, you can search for it in the Start menu.

About

Objective: To find visible polygon vertices to a point inside the polygon using python libraries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages