Message Boards Message Boards

Use RegionDifferences with Cuboids & RegionPlot3D regions?

Posted 8 years ago

I make two Cuboids into a box. This 'RegionDifference' works !

tray = Cuboid[-1.0 {998.542, 205.604, 0}, 1.0 {998.542, 205.604, 233.433}];
trayCutout = Cuboid[-1.0 {990.969, 198.032, 7.572}, 1.0 {990.969, 198.032, 225.861}];

reg1 = Fold[RegionDifference, tray, {trayCutout}];

enter image description here

I then make a 'spoon' region to use as a cutout, enter image description here but this 'RegionDifference' fails ...

spoon = RegionPlot3D[0.0452 (x^2 + y^2) - z <= 0, {x, -30.231, 30.231}, {y, -30.231, 30.231}, {z, 0, 41.345}];
cutout = Translate[First[spoon], {525.466, 0, -41.345}];

reg2 = Fold[RegionDifference, reg1, cutout];

**What do I need to do to 'reg1' after the 1st RegionDifference to make it usable in the 2nd RegionDifference & how can I make the 'cutout' usable in a RegionDifference ? Any ideas how to make this work ? Thanks**

POSTED BY: Rick Tschudin
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract