Questions tagged [polygons]

Polygons are multi-sided objects. This heading should be used when describing issues involving multiple polygons and how they relate to each other, for example, overlap detection.

Polygons are multi-sided objects. This heading should be used when describing issues involving multiple polygons and how they relate to each other, for example, overlap detection.

474 questions
-2
votes
2 answers

How can I see if two Polygons overlap?

I need to check if two java.awt.Polygons overlap, but I don't know how.
ungato
  • 153
  • 2
  • 12
-2
votes
1 answer

Draw Polygons on a map using WebGL's drawArrays

I am trying to draw polygons on a map, using OSM data downloaded. I have written a query that returns a list of polygons from the planet_osm_polygon table. It resturns the list as JSON objects. I am using gl.drawArrays(gl.LINESTRIP, 0,…
user4726090
  • 27
  • 3
  • 9
-2
votes
1 answer

Storing google maps polygons in mysql

I want to draw polygons in google maps and for these to be stored in mysql. I then want to be able to upload polylines and see if they intersect with the polygons. Is this possible?
Ben
  • 1
-2
votes
1 answer

How do you connect polygons?

I am making a .obj reader in Java, and am trying to test it out on a monkey head I exported from blender. What my .obj reader does to render it in JOGL, is render every square/polygon that is in the model. This loads the right image, but if I try to…
Ccflier
  • 53
  • 5
-2
votes
4 answers

trying to draw a hexagon shape in

I'm trying to draw a hexagon shaped asteroid on a clone of Asteroids I'm making for a class. sprite = new Polygon(); sprite.addPoint(0,0); sprite.addPoint(0,-40); sprite.addPoint(30,-40); sprite.addPoint(60,-10); …
user1768884
  • 1,079
  • 1
  • 20
  • 34
-3
votes
2 answers

Polygons and keys

hi I am having trouble with this one problem Given a variable, polygon_sides, that is associated with a dictionary that maps names of polygons to number of sides, create a new dictionary that maps number of sides to polygon names, and associate it…
Leo Meier
  • 1
  • 1
-3
votes
2 answers

How to draw an open polygon in R

How can I create open polygons using R like these two examples:
sbac
  • 1,897
  • 1
  • 18
  • 31
-3
votes
1 answer

Issue with program output

Below is my program that determines the perimeter and area of a polygon given a certain amount of (x,y) coordinates but I seem to be getting the wrong output and I can't see why. The input is: 3 12867 1.0 2.0 1.0 5.0 4.0 5.0 5 15643 1.0…
nlowe
  • 37
  • 4
-3
votes
1 answer

Save "Polygon" latitude and longitude coordinates in database and retrieve the polygon again from the database

i already have the "Polygon" latitude and longitude coordinates but i need to to know how to make a database and save them in it so i can call this polygon again in the code from the already saved database.
1 2 3
31
32