And, if you do pre-treatment, this should make your life easier. Here is a little code that I used with Graphics2D (using J2SE). I do not like that the output includes additional inner segments, but when it is full, it looks pretty good.
import java.awt.BasicStroke; import java.awt.Shape; import java.awt.geom.Path2D; import java.awt.geom.PathIterator; public class StrokePath { public static void main(String[] args) {
Here are my results after rendering these coordinates:


Steven ourada
source share