I have one program in VB6 that generates a list of line coordinates for letters. They are the vertices on a polygon for the letter. The letter A is shown here with the red circles. The red marks are where each vertice is. I can increase or decrease these based on the precision setting.
Here is what I need. I need a second list of coordinates that outline this set by a given space. In otherwords, if I pass a spacing value of 20, then I want a new set of coordinates to go all the way around this letter but 20 out (Whatever the scalemosde is. For my test it is twips but should work for pixels also). But here is the problem - In areas like the top of the A where there is a curve and alot of vertices, the precision needs to stay they same. More vertices can be included if needed but no less.
The first set of lines is for previewing the letter. The second set is spaced out by the width of a router bit and a router will follow this outter line. Its an offset line for the bit width.
Attached is a list of coordinates for testing. Notice the starting coordinate always is the sme as the ending to complete the polygon. This list is only for testing. It must work for any set of coordinates such as an image, etc.
Woops, almost forgot. In the list I marked the outside coordinates the the inside set. The inside set should have the new set created inside of the exisitng line, not further out. So if its an outside list, create a new list of coordinates further out based on the passed spacing value. If the set is marked inside, the move the new set further inside.
I need this immediately. The picturebox has a Line method for drawing lines so you can set your new set of coordinates. Send me a new set for the ones I have posted tog et accepted faster showing you can do it. ONLY in VB6.0.