Mobile app version of vmapp.org
Login or Join
Ravi4787994

: 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

@Ravi4787994

Posted in: #AdobeIllustrator #Drawing #ImageTrace

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.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi4787994

2 Comments

Sorted by latest first Latest Oldest Best

 

@Deb5748823

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;
}
}

10% popularity Vote Up Vote Down


 

@Nimeshi706

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:

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme