: Approximating path with shapes? Let's say I have a triangle that I drew with a pen so it's not perfect. I then upload it to illustrator and image trace it into a vector. It's now clean but
Let's say I have a triangle that I drew with a pen so it's not perfect. I then upload it to illustrator and image trace it into a vector. It's now clean but still not perfect. Is there a way to approximate it into a real triangle? Similarly approximate an imperfect circle into a perfect circle.
Edit:
Redrawing it in illustrator using shape tools is not an option. the image I'm working with is too complex to do that and it will take a very long time. I just want to be able to perfect it using some kind of algorithm on illustrator. simplifying the path doesn't work.
More posts by @Ravi4787994
2 Comments
Sorted by latest first Latest Oldest Best
It's possible to write a basic jsx to draw the triangles at each selected item. The function below will resize the drawn triangles to match both height and width of each selection. If you want triangle proportions maintained, use only height or width.
DrawTrianglesAt (activeDocument.selection);
function DrawTrianglesAt (items)
{ var count, i, s, tri;
count = items.length;
for (i=0; i<count; i++)
{ s = items[i];
tri = s.parent.pathItems.polygon (0, 0, 1, 3);
tri.fillColor = s.fillColor;
tri.strokeColor = s.strokeColor;
tri.top= s.top, tri.left = s.left;
tri.height = s.height, tri.width = s.width;
}
}
As far as I'm aware, there's no option or script to redefine an imperfect polygon to a perfect polygon. (I could be wrong though)
However...
Illustrator CC has the Shaper Tool which may be helpful.
You could manually draw on a new layer merely approximating the shapes to get actual precise shapes:
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.