I'd like to get some advice here.
The real world issue I'm trying to solve is to cut rectangles from ortogonal metal plates, and store the remaining material for later use.
I'd like to cut toBeCut's dimensions from plate, expecting 2 polygons as the result, one is equivalent to toBeCut, and other is the remaining from plate.
On the longer run I'd like to offer the user all possible positions, finding all possible angles by rotating toBeCut around the corners of plate (always snapping to the corners, and checking if it contains the actual variation a.k.a. fits into it), but I'm stucked at the first step: how to substract the smaller from the other.
Hello,
I'd like to get some advice here. The real world issue I'm trying to solve is to cut rectangles from ortogonal metal plates, and store the remaining material for later use.
I'd like to cut
toBeCut
's dimensions fromplate
, expecting 2 polygons as the result, one is equivalent totoBeCut
, and other is the remaining fromplate
. On the longer run I'd like to offer the user all possible positions, finding all possible angles by rotatingtoBeCut
around the corners ofplate
(always snapping to the corners, and checking if it contains the actual variation a.k.a. fits into it), but I'm stucked at the first step: how to substract the smaller from the other.thanks