I can suggest you to build the object you have to subtract within a bounding box (e.g. RPP or RCC) so that subtracting them would be easier, as this was suggested here. Alternatively, you can try what was suggested here by @vasilis.