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: | 113 |
Nodes: | 8 (1 / 7) |
Uptime: | 156:15:32 |
Calls: | 2,504 |
Calls today: | 1 |
Files: | 8,703 |
Messages: | 1,929,840 |