toPolygon

fun Geometry.toPolygon(): Polygon

Convert jts Geometry into a FooCAD Shape2d (specifically, a Polygon).

See toJTSGeometry for the reverse operation.