This script copies the selected object and then hides its edges based on certain criteria. Open edges - silhouette edges - edges that have different material id's on each face and edges that has faces with angles greater that the specified threshold are left visible - the rest get hidden. This gives the effect of toon outlining - it then applies a Lattice to it.
NOTE: I've updated the script - it no longer makes a mesh with a lattice mod in it. Now it builds a renderable spline cage.
1. Run the script
2. Select the object you want to toon edge
3. Change the threshold
4. Press go
5. Change the radius