| | | | |
In lugnet.cad, Santeri Piippo wrote:
|
Hi folks, - SNIP
Polygon sorting - help needed
I need a little bit help, however. The polygon sorting algorithm I have right
now does not work properly. Currently its done by calculating the center of
the polygon by simply calculating the means of the coordinates.
How do existing programs - LDView in particular as its an OpenGL one too -
sort polygons? Id appreciate help tremendously here..
|
-SNIP-
At present I can not see the reason to sort polygons if you only want to display
them.
cu
mikeheide
| | | | | | | | | | | | | In lugnet.cad, Michael Heidemann wrote:
|
In lugnet.cad, Santeri Piippo wrote:
|
Hi folks, - SNIP
Polygon sorting - help needed
I need a little bit help, however. The polygon sorting algorithm I have
right now does not work properly. Currently its done by calculating the
center of the polygon by simply calculating the means of the coordinates.
How do existing programs - LDView in particular as its an OpenGL one too -
sort polygons? Id appreciate help tremendously here..
|
-SNIP-
At present I can not see the reason to sort polygons if you only want to
display them.
cu
mikeheide
|
The polygons have to be painted on the screen in the correct order in order to
have the part displayed correctly. Its not handled automatically. So I need an
algorithm to sort the polygons.. and my current one doesnt work right.
-Santeri
| | | | | | |