I just discovered JTS through this stack exchange. I'm looking for a Java solution to cut an abitrary polygon into two by a line. I've implemented one that does fine on convex polygons, but it messes up on concave ones.
Can anyone give an example on how to use JTS to cut a convex polygon by a line segment? I know that sometimes you can end up with more than two polygons depending on the shape.