Assistance in recreating a circular arc?

how would i recreate an circular arc based from 2 points ?
(the green shows the arc i am trying to create)

i tried with bezier curves but it creates a problem.
Screenshot 2025-02-22 182140
Screenshot 2025-02-22 180136
you can see the tracks overlapping the wheel
i think its because the arc is too large and bezier curves can only approximate the circular arc.

i though about simply just splitting it up into smaller segments, but this only overcomplicates my already complicated code, and i have ran out of ideas.

any help would be appreciated!

Duplicate the wheel and make one of them smaller. Make the larger wheel transparent.

1 Like

from the look of it, you need to adjust the tangent at those two end points. they should be parallel to the tangent, now they are too inwards.

and also two points almost at the opposite side of a circle is a challenge.
but you can just add one point in between to make a much better approximation

1 Like

huh i dont get what you mean?, also i though of a fix. since i’ve been using quadratic bezier for the curves maybe i have to switch to cubic ones instead because of this image


where green is the quadratic and red is the cubic.

so all i need to do is somehow find the bezier control points of p3 and p4


any ideas on how?

your green curve, you have one end point correctly go tangent,
but your other point is not tangent

do you understand what ‘tangent’ is? it means go along the circle direction.
in your graphs, your red curve end points are good, they follow the tangents

nevertheless, a cubic can approximate better than a quadratic, also if the end points too far from each other, you add one more in between points on the circle to reduce the deformation

1 Like

you mean these points?
fc
can you also specify which point is not a tangent point?

image
red dots are the touching point and end points of the curve.
red line is the belt direction where it touches the circular barrel,
green line is your curve direction, we should have the green lines equals red lines for direction

image
add one more in between point can make it approximate the circle better