for measuring outlines by shadow casting