Technique for finding the centerline of a curved object?
I'm curious to know if anyone knows of any effective techniques for finding the center line of a curved object.
In the screenshot below you'll see a crude version of what I mean.
Is there any way to get that line to perfectly trace the center, or is it easiest to just eyeball it?
Photoshop or Illustrator techniques are acceptable.
If you are happy with just getting close, this works in Illustrator - especially for an image that has a consistent width like your example.
Draw a circle that is the same width as your object's width
Copy/paste the circle as many times as needed and distribute around the object. Use enough of them to follow the shape fairly closely
Using the pen tool simply draw a line through the centerpoints of the circles you made. Just connect them straight, don't worry about curves.
Use the smooth tool to curve the line you just made. (just follow the curve of the original with the smooth tool) If necessary you can make curve adjustments separately at the bezier points.
Delete the circles
The picture below will demonstrate a little better.
Use Illustrator's Blend
Outline your type (Type â†’ Create Outlines)
If needed, ungroup the paths and/or release the compound path (Object â†’ Ungroup / Object â†’ Compound Path â†’ Release)
Use the Direct Selection Tool (A) to select the end paths and delete those segments. You should now have 2 separate paths.
Set the blend options to 1 step (Object â†’ Blend â†’ Blend Options)
Create your blend (Object â†’ Blend â†’ Make)
Blend will usually give the desired result but can sometimes fail with more complex curves.
If the blend fails, use the Scissors Tool (C) to cut both paths at the problem areas and recreate the blend for each section.
For more complex letters or shapes, divide the shape in to more manageable sections. Then create a blend for each section.