Added case handling for not closed geometry, so that the toon shader will work properly at border edges.