Does it exist an already developed module on matlab that returns a parallel circle-arc to another given circle-arc ?

I would like to return the parallel circle-arc to a given circle-arc, displaced by a distance "e". I found packages that allow for example plot circle -arcs, like geom2d.rar. I'm looking for a similar package.

 Accepted Answer

Code for drawing an arc is given in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_an_arc.3F It should be easy to adapt since you already have "a given circle-arc" - just increase the radius from the given radius.

5 Comments

if i decrease (or increase) the radius of the original arc (blue) it will not be the desired result. It will give the red arc instead of the yellow one ( picture).That's why the function is a little bit more complicated than this .
Is the curve just translated towards the center of curvature while keeping the radius of curvature the same, OR does the radius of curvature also change (decrease radius but increase angle)? It's not clear from your photo.
If you just want to translate the arc, and you have the x,y coordinates of points along the arc, just add a deltax and deltay to them
xArcShifted = xArc + deltaX;
yArcShifted = yArc + deltaY;
yes it is a translation in fact. but the function matlab that i use consider an arc as 3 points, the second one is the center. and it is coded like this (xc,yc,R, thetastart,thetafinish) where xc and yc are the coordinates of the center of the arc . So if i translate an arc i would like to recuperate a similar structure in the output, an arc (xc',yc',R', thetastart',thetafinish').So what is the type of output of your code ? thank you :)
Simply draw it again the same way you drew the first one, but with shifted xc,yc:
xc = xc + deltaX;
yc = yc + deltaY;
% Now call the drawing routine again with the new xc,yc.

Sign in to comment.

More Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!