0

in my addon I have a 2d shape (polyline) for which I want to add rounded corners (step-wise, like the bevel does, when added edges for the bevel).

enter image description here

This means I want to decide that I add for example 2, 3, or any number of points like this:

enter image description here

And then connect these with my polyline.

Does anybody no the algorithmn for this?

Jayanam
  • 665
  • 3
  • 18
  • Well, a bit, but I have 2d points that I draw with opengl / gpu and I just need to add more points to create a round corner, same functionality that bevel has just for 2d. – Jayanam Jan 19 '19 at 10:28
  • Basic trig, put a circle, radius r, in the corner. You have a corner pt, (x, y) centre of circle will be (x -r , y - r) Arc one quadrant. Same principle as link above. – batFINGER Jan 19 '19 at 10:36
  • ok, understood, the circle is kinda the perfect match. but how to find the points (e.g. 2, 3, 4...) on this circle? – Jayanam Jan 19 '19 at 12:48

0 Answers0