toPath2d
Converts jts Geometry to a FooCAD Path2d.
Returns null if this org.locationtech.jts.geom.Geometry has no coordinates. If the first coordinate is the same as the last, then the last coordinate is omitted, and the path is set to Path2d.closed. Otherwise, the path is not closed.