I have the border points of a 2-D body and wish to fill its interior with a solid color. Let us say I have $N$ such points stacked in the $N \times 2$ matrix $A$ so that the first column indicates the $x$ co-ordinates and the second column denotes the corresponding $y$ co-ordinates.
Asked
Active
Viewed 709 times
-1
1 Answers
2
Like this?
Graphics /@ Polygon /@ Table[{Cos@x, Sin@x}, {j, 3, 6}, {x, 0, 2 Pi, 2 Pi /j}]

Dr. belisarius
- 115,881
- 13
- 203
- 453
-
yes, like that. Here I have some of the border points of a convex 2-D body. Think like this. I have a vertical slider. I start from the left side of the body. Now slider will have two endpoints on the convex body. I store them. I again translate it towards the right and get more points like this. I can control the resolution of the horizontal movement of the slider, thus can get a lot of points like that. – dineshdileep May 01 '13 at 02:33
Polygon[]. – J. M.'s missing motivation Apr 30 '13 at 17:41