hi,Is it possible to automate the transformation of rounded angles into right or pointed angles of lettering or vector shapes?
Such a task can be automated with a macro. I can do that. It takes a little time. If you are interested, write to me at tv.softlv@gmail.com. It is necessary to clarify some initial parameters.Taras
Thanks for your offer, but I don't have a budget for that for you. I'm just looking for some ideas to make a macro myself.
I wrote a macro can do this, you can find it here: Shelby’s Sharpen Nodes – macromonster.comI of course want to support you in learning and trying this yourself. There are several ways to do this, but I will show you one of the simpliest.Draw two lines that start to come together and combine them like this:This will be what we use to test with. With the Shape tool select the right two nodes. In code, we need to find this two selected nodes. We can do that with Curve.Selection. Once we have the two nodes we can extend them until the meet with ExtendSubPaths.
A simple example would look like this:
Sub SharpenCornerExample() Dim nr As NodeRange Set nr = ActiveShape.Curve.Selection nr(1).ExtendSubPaths nr(2), True End Sub
After running the code on the two nodes you should get this:
Happy Coding,
-Shelby
My idea is simple.Step one. Write two equations for straight lines in the form y1=A1*x1+B1y2=A2*x2+B2where A1 and A2 are the tangents of the angles between the corresponding line and the X axis. And parameter B is the displacement of the point of intersection of the line with the Y axis.Step two. Solve the system of these two equations, that is, find the point of intersection of these straight lines, which will be the vertex that must be reproduced. That is, its coordinates will be at the point where X1=X2 & Y1=Y2
Step three. Connect the two segments with the found vertex.Well, if you think my idea is complicated, or if you think I'm boring, then you better take Shelby's advice. I always listen to his advice.Regards