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.