Here is the case:

There are 3 points: point_a, point_b, point_c, need to draw a arc from point_a to point_b and also make the point_c on the arc.

how to do that by ruby?

Thanks in advance for any help!

Here is the case:

There are 3 points: point_a, point_b, point_c, need to draw a arc from point_a to point_b and also make the point_c on the arc.

how to do that by ruby?

Thanks in advance for any help!

The API support for adding an arc is pretty basic, involving: center, radius, normal vector, start axis (aka “x”), start angle and end angle ( from x), and optionally number of segments. You’ll have to do the math to calculate these values from your three points.

1 Like