Simple Poygons(>2) union
-
I have located fast libraries for unions of 2 polygons.Now, how does one merge a group of simple polygons.
Two by two?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
-
Two by two?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
oh dear, what i meant was I want a program which takes a group of input simple polygons and merges them with the 2nd group of simple polygons. I have located 2 libraries (both use vatti's) algorithm for clipping. My polygons are without hoes,not self intersecting and only graze at edges(if at all). I want to merge them to get the outer contour of the final merged polygon. I presume that would be easier to do then the clip in the 2 heavy libraries.
-
oh dear, what i meant was I want a program which takes a group of input simple polygons and merges them with the 2nd group of simple polygons. I have located 2 libraries (both use vatti's) algorithm for clipping. My polygons are without hoes,not self intersecting and only graze at edges(if at all). I want to merge them to get the outer contour of the final merged polygon. I presume that would be easier to do then the clip in the 2 heavy libraries.
YOu said you located 2 libraries that can "merge" 2 polygons, as i understood, i thought your problem was how you would merge more then two polygons. So actually what you want has nothing to do with the libraries because you don't want to use them but instead you want to do the task without the help of these, right? Well, if you are doing this under windows you could try creating regions from your polygons and merge them (windows can do this for you), how you get the points back from the resultiong region i don't know yet.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
-
YOu said you located 2 libraries that can "merge" 2 polygons, as i understood, i thought your problem was how you would merge more then two polygons. So actually what you want has nothing to do with the libraries because you don't want to use them but instead you want to do the task without the help of these, right? Well, if you are doing this under windows you could try creating regions from your polygons and merge them (windows can do this for you), how you get the points back from the resultiong region i don't know yet.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
-
yes, i want to merge the regions and just get the outer contour. As simple as that and I have to use clipper?.(it is in borland delphi/c++)
I doubt Clipper is the only language you could implement this in.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
-
I doubt Clipper is the only language you could implement this in.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
-
no it is in delphi/c++ and gpc is in c++.I dont a demo program to use the libraries under vs2010..that is the problem.both use a algorithm called vattis algorithm in computational Geometry. in vs2010 /c++(unmanaged) i dont know how to do graphics .
So let me get this straight: 1. one of the libraries you could use is written in C++ 2. the second one you could use is written in pure, standard C++ 3. you have sources, so not lib files 4. you want to work in VC++ with VS2010, use one of these libraries in it and display graphical representations of your polygons but you don't know how to: -use any of the libraries in VC++ -do graphics in VC++ If i am correct then i believe you should first learn some basic VC++/Windows programming before getting to the actual implementation of this polygon thing. If one of your libraries is written in standard C++, you probably whould be able to build it with VC++ too.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
-
So let me get this straight: 1. one of the libraries you could use is written in C++ 2. the second one you could use is written in pure, standard C++ 3. you have sources, so not lib files 4. you want to work in VC++ with VS2010, use one of these libraries in it and display graphical representations of your polygons but you don't know how to: -use any of the libraries in VC++ -do graphics in VC++ If i am correct then i believe you should first learn some basic VC++/Windows programming before getting to the actual implementation of this polygon thing. If one of your libraries is written in standard C++, you probably whould be able to build it with VC++ too.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
yes,you got it right.I also know how to do some vc++(the old c++ not the new one with lambda,..).I know vb.net ok and also c++. I have asked a friend to help me in command line and probably when i show him my face next we will have a c++ program which readpolygons,readpoygons, perform union, write result polygons no graphics....so sad... ps:i have got 1 more library, in c of the previous decades.