This addon adds two operators to blender which both work on edgeloop selections.
Feel free to create issues, file requets etc. but be aware of that I might not find time to work on this as much as I'd probably need to. I do plan to make it work for blender 2.8 tho. We'll see how that goes.
Anyhow lets start with a brief overview:
Set edge flow:
My stab at implementing a set flow operator for blender, which is a popular tool in 3ds max and maya. This adjusts the edgeloop via a spline interpolation such that it respects the flow of the surrounding geometry.
Set edge linear:
This tool has two modes, the first makes each selected edge loop linear, the later works on edge rings and straightens them and adjusts each edge length.
A more indepth description of these tools can be found bellow.
Where are these located in blender?
Both can be accessed via the 'Mesh>Edges' Menu or the Edge Menu Shortcut (Ctrl-E). The two commands should be there at the bottom. As mentioned both operate on edge selections - mostly edgeloops.
- grab the most recent .zip from the depoly folder
- start Blender and open the user preferences
- switch to the Add-ons tab and click the Install Add-on from file... button at the bottom
- locate the downloaded EdgeFlow.zip file and double-click it
- activate the addon by ticking the checkbox and hit the Save User Settings button at the bottom
Set edge flow
This operator has three options to play with:
Controls the strengh of offset
How often the operation will be repeated
Cut off angle of the smoothing. Falls back to a linearely extrapolated position if the angle is beyond threshold.
How it works
Back when I first got to see this in action I did quite not understand how it all worked - so I thought i might be well worth adding a quick description to better understand how the underlaying mechanics work.
The tool goes over each edge from an edgeloop, and then goes over each vert for this edge. For every vert it searches the points C1-C4 which are used as 'control points' for the spline interpolation - quite similar to how every vector drawing programm works. So its all depending on the surrounding geometry - which also means if we have multiple neighbouring edgeloops they all influence each other once we start applying this smoothing. Doing the same operation a few times helps to balance it all out and converges quickly into something stable after a few iterations - so hence the need for such an option.
Set edge linear
As already mentioned this is basically two tools in one. The first case is if you just select regular edge loops. After running the operator each loop should be linear from start to end point. The spacing of all the other points can either be spaced evenly, or projected from the original distances.
The second case is if the selection consits only of single edges - most common in edge rings. Once applied it straightens the edges to the next connected vert and makes sure the distance is even everywhere. This is handy for tweaking control loops for SubD Modelling. Mostly inspired by an older 3ds maxscript from Christoph Kubisch: http://luxinia.de/index.php/ArtTools/3dsmax
I had to reimplement the edge loop selection from blender because I needed to go from a spaghetti edge selection to sorted edgeloops. While I like that I was able to reproduce blenders selection behaviour I still think I might have overlooked something on how to do it with the regular api - any hints?
I tried different spline interpolation implementations but settled with a hermite interpolation from http://paulbourke.net/miscellaneous/interpolation/ as it has this nice tension variable.