Simple program to generate the inner and outer parallel curves in rectangular coordinates. inner parallel is toward the center of curvature and outer parallel is away from the center of curvature. Use option flag1=0 to keep the parallels on the side sides (disregarding concavity). The Input the x, y coordinate pairs and distance between the curve and the parallels and the option to make a plot.
Parallel curves are related to the involute, evolute, and envelope. Program can easily be modified to generate the evolute by replacing d with R in lines 254-270.
Edward Zechmann (2021). Parallel Curves (https://www.mathworks.com/matlabcentral/fileexchange/27873-parallel-curves), MATLAB Central File Exchange. Retrieved .
Inspired by: Vector algebra for arrays of any size, with array expansion enabled
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Sorry, change the last argument 'flag' to 0 will generate correct result.
So it will give incorrect result for a curve like a circle.
Nice. It works as described.