faster distanceMap generation and moved stroke vertex gen