Given a set of axis-aligned rectangles in the plane, this paper presents an algorithm for the removal of rectangle containment as well as rectangle enclosures. That is, given a query rectangle R q , this algorithm removes all rectangles R k , . . . , R l from the rectangle set that are contained in R q . It also removes R q if there is a rectangle R j that encloses R q . The algorithm, initially implemented for rectangle spline generation using rectangles as building blocks, is fast, easy to implement and maintain, it can be run on parallel machines such as GPUs at no extra cost, but it requires extra memory to store the rectangle indexes for quick access and space partitioning.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.