Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica help! union/intersection of 3d plots

  1. Aug 19, 2012 #1
    I want to do the following:

    Say I have 4 RegionPlot3D plots, namely A1 A2 B1 and B2. Each of those four plots are region plots so they occupies some kind of region inside the same 3d space.

    First I want to find and display union of A1 and A2, call it A. Then find and display union of B1 and B2, call it B. Lastly, I want to find and display intersection of A and B.

    Somethings that I have tried:
    1. I can use Show[A1,A2] to graphically find the union of A1 and A2, but after I got A and B. I can't use the Show function to find intersection.

    2. I can directly use RegionPlot3D to find intersections of two plots by naming the regions region1 and region2. I can use do RegionPlot3D[region1 && region2....] to do it. But I can't find unions using this method.

    3. If my goal is first do intersection, then do union, I can use above two method to do it. But my goal is first do union. So if I use, it doesn't really tell me what region does the union results in, it just displays it.
  2. jcsd
  3. Aug 19, 2012 #2
  4. Aug 19, 2012 #3
    right right. I just found it out there is a || operator as well. Thank for the reply.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook