forked from: OutLineTrace

