Top "Polygon" questions

For issues relating to the creation, manipulation and rendering of polygons in graphical user interfaces.

Polygon enclosing a set of points

I have a set S of points (2D : defined by x and y) and I want to find P, the …

algorithm language-agnostic geometry polygon
Transparency with polygon command

I used the polygon command in R which created an area in the plot. However, the values in this area …

r polygon
Algorithm to generate random 2D polygon

I'm not sure how to approach this problem. I'm not sure how complex a task it is. My aim is …

algorithm matlab random polygon computational-geometry
How do you draw transparent polygons with Python?

I'm using PIL (Python Imaging Library). I'd like to draw transparent polygons. It seems that specifying a fill color that …

python-imaging-library polygon alpha
sp::over() for point in polygon analysis

I have a shapefile named "ind_adm" and a SpatialPointsDataFrame called "pnts". The "pnts" contains points generated at random, and …

r gis polygon shapefile
How to draw a n sided regular polygon in cartesian coordinates?

I have been trying to figure out how to write a simple program to compute the x,y points for …

language-agnostic polygon point-in-polygon
Check if polygon is inside a polygon

Yesterday I was looking to check if a point was inside a polygon and found this great script: https://github.…

javascript algorithm google-maps geometry polygon
Random points inside a parallelogram

I have a 4 side convex Polygon defined by 4 points in 2D, and I want to be able to generate random …

algorithm matlab random 2d polygon
How to get list of points inside a polygon in python?

I searched a lot and cant find any practical answer to my question. I have a polygon. For example: [(86, 52), (85, 52), (81, 53), (80, 52), (79, 48), (81, 49), (86, 53), (85, 51), (82, 54), (84, 54), (83, 49), (81, 52), (80, 50), (81, 48), (85, 50), (86, 54), (85, 54), (80, 48), (79, 50), (85, 49), (80, 51), (85, 53), (82, 49), (83, 54), (82, 53), (84, 49), (79, 49)] I …

python algorithm gis polygon fill
Find Point in polygon PHP

i have a typical question with the Geometric datatype of mysql, polygon. I have the polygon data, in the form …

php mysql polygon point-in-polygon