I'm looking for a way to get the coordinates of vertices of a polygon
offset x pixels within a known polygon. This seems to be a non-
trivial problem, but I thought of a trick - What if I have the original >polygon drawn by Windows with a thick line, the inside edges of that
thick line will then describe a new polygon. Does anyone know a way
to get the coordinates of the inside edges of this thickly drawn
polygon. I usually work in VB, VB.NET, or C#, but solution in any
language would be welcome.
You say offset, but from your proposal appear to mean scaled smaller. Depending on the type of polygon, can you define a center of 'mass' from the verticies,then simply scale it to a smaller size?
--
Cheers, Steve
I'm looking for a way to get the coordinates of vertices of a polygon
offset x pixels within a known polygon. This seems to be a non-trivial problem,
but I thought of a trick - What if I have the original polygon
drawn by Windows with a thick line, the inside edges of that thick line
will then describe a new polygon. Does anyone know a way to get the coordinates of the inside edges of this thickly drawn polygon. I usually work in VB, VB.NET, or C#, but solution in any language would be welcome.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 84:55:52 |
Calls: | 6,658 |
Calls today: | 4 |
Files: | 12,203 |
Messages: | 5,333,698 |
Posted today: | 1 |