Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

gotta turn a bunch of points into polygons

Name: Anonymous 2008-05-13 2:49

I have a set of lines with points on them. I need to turn that into a set of polygons, the smallest empty polygons I can make out of them.

I'm going to try to have it find the polygon around the origin, then take each segment and find the smallest polygon that includes that segment on the otherside...

wtf coders

Name: Anonymous 2008-05-13 2:59

in 2 dimensions or three?  What significance do the lines have besides containing the points?

Name: Anonymous 2008-05-13 3:14

2 dimensions. better post at 7chan/pr/ but i'll copy the text:

I am trying to write a program that takes a net, that is integer combinations of two (2d) basis vectors that aren't necessarily ortho, and break them up into zones based on how many points on the net the origin is closer to.
That is, if the origin is closer to all of them, it is the first zone, if it is closer to all but one it is the 2nd, etc. Picture very related.

'm writing this in python. I've tried this in a depressing number of different ways. The most promising was to turn the vertices into a graph, which I think I have implemented, and go from there.

The program would look for the smallest polygon, then look for polygons outside each edge of the polygon and keep going from there.

Any advice on this though? I've been looking at this for so long that I feel numb.. I already know I suck at programming but come on. It shouldn't be very hard even for an idiot like me.

I might add that efficiency matters in this... Also, floating point arithmetic seems like it will begin to fuck up past the 5th or 6th zone.

Name: Anonymous 2008-05-13 3:41

>>1,3 GET OUT OF MY LAMBDA KNIGHTS NAO

Name: Anonymous 2008-05-13 3:58

>>4
lolwut?

Name: Anonymous 2008-05-13 5:01

NO ONE HELP HIM

Name: Anonymous 2008-05-13 5:07

>>6
I think that you meant ''DON'T HELP HIM!!``.

Name: Anonymous 2008-05-13 5:07

>>6
perhaps it was a mistake posting here

Name: Anonymous 2008-05-13 6:57

Google Delaunay triangulation

Name: Anonymous 2008-05-13 7:07

>>8
Perhaps it was.

Name: Anonymous 2008-05-13 7:35

>>7
I think you meant
DON'T HELP HIM

Name: Anonymous 2008-05-13 7:38

>>11
No. No, I did not.

Name: Anonymous 2008-05-13 8:51

>>3
You don't explain things very clearly, but what I'm guessing you mean is that you want an algorithm that defines a polygon completely enclosing a given set of points. Is that right?

Name: Anonymous 2008-05-13 8:59

The branch of computer science that involves such things is ``computational geometry''. There's plenty of reading material on university websites about the techniques you'll need. Here's some to start you off:

http://www.google.com/search?q=%22Computational+Geometry%22+polygon+points

Name: Anonymous 2008-05-13 9:00

In particular, see the bottom of this page http://www.ics.uci.edu/~eppstein/161/960307.html

Name: Anonymous 2008-05-13 10:21

Name: Anonymous 2008-05-13 10:56

Great, you have HELPED HIM!!

Name: Anonymous 2008-05-13 16:27

HAX MY ANUS

Name: Anonymous 2009-03-06 9:07

The ripper etc its.

Name: Anonymous 2009-03-06 9:44


The value of tmp   and all was   packed standing room   only Finally the   clearest explanation and   example of how   they work If   I want to   cum all over   the fucking floor.

Name: Anonymous 2010-11-15 22:14

Name: Anonymous 2011-02-03 2:59

<

Name: Anonymous 2011-02-04 17:17

Name: Sgt.Kabukiman萊拊 2012-05-23 5:40

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Name: Anonymous 2013-01-19 23:43

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List