Is there an existing matlab implementation of cut polygon function? Such as the one that is based on Generate new polygons from a cut polygon (2D)?
I understand that we have this implementation, but looking at the source code, I don't think this is a correct implementation ( just my hunch) because it distinguishes vertical and horizontal lines in the checking ( A good algorithm should just don't care about whether the line is vertical or not, for the concept of vertical/horizontal is arbitrary).