Adding polygon
-
I am going to draw some polygons with borders and filled with a color. From time to time I have to draw a border around two adjacent polygons. Any suggestions to algoritms. I have tried making two regions and combining these but when I draw the frame it makes a frame around the polygons I like to have the border in the edge of the polygons. thanks a lot
-
I am going to draw some polygons with borders and filled with a color. From time to time I have to draw a border around two adjacent polygons. Any suggestions to algoritms. I have tried making two regions and combining these but when I draw the frame it makes a frame around the polygons I like to have the border in the edge of the polygons. thanks a lot
Maybe I don't understant what you mean, but have you looed at
PolyPolygon()
? - Anders Money talks, but all mine ever says is "Goodbye!" -
I am going to draw some polygons with borders and filled with a color. From time to time I have to draw a border around two adjacent polygons. Any suggestions to algoritms. I have tried making two regions and combining these but when I draw the frame it makes a frame around the polygons I like to have the border in the edge of the polygons. thanks a lot
The other way to work is to consider building your polygon in reverse, by clipping out the areas that are not wanted anymore. Regardz Colin J Davies
Sonork ID 100.9197:Colin
I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign' Rob Manderson wrote:
-
Maybe I don't understant what you mean, but have you looed at
PolyPolygon()
? - Anders Money talks, but all mine ever says is "Goodbye!" -
I am going to draw some polygons with borders and filled with a color. From time to time I have to draw a border around two adjacent polygons. Any suggestions to algoritms. I have tried making two regions and combining these but when I draw the frame it makes a frame around the polygons I like to have the border in the edge of the polygons. thanks a lot
You mean you have two polygons with non 0 intersection and you'd like the union of those? Did you use CombineRgn with RGN_OR and then FrameRgn? Or do you want the smallest single polygon cover? (i.e. no holes)
-
You mean you have two polygons with non 0 intersection and you'd like the union of those? Did you use CombineRgn with RGN_OR and then FrameRgn? Or do you want the smallest single polygon cover? (i.e. no holes)
Yes 2 polygons with one or 2 adjacent sides. The problem with Regions is that when I use FrameRgn, I get a Frame around the region, and just want to display the edge. The problem is that I have som schematic teeths, divided into 5 polygons one center, with four surrounding polygons. You can have a defect in two adjacent polygons og just in one polygon. When you have it in one polygon you have a frame around the polygon surrounding this polygon with a color inside indication the material the defect is filled with. When the defect extend into two polygons the I want to have a frame around both polygons filled with a color. I might extend it to the hole teeth. Thanks for your interest
-
The other way to work is to consider building your polygon in reverse, by clipping out the areas that are not wanted anymore. Regardz Colin J Davies
Sonork ID 100.9197:Colin
I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign' Rob Manderson wrote: