Mathematica help! union/intersection of 3d plots

  • Mathematica
  • Thread starter yzhang33
  • Start date
  • #1
2
0

Main Question or Discussion Point

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.
 

Answers and Replies

  • #2
1,069
29
  • #3
2
0
right right. I just found it out there is a || operator as well. Thank for the reply.
 

Related Threads for: Mathematica help! union/intersection of 3d plots

  • Last Post
Replies
1
Views
938
  • Last Post
Replies
1
Views
670
Replies
3
Views
5K
Replies
1
Views
8K
Replies
2
Views
6K
Replies
7
Views
25K
Replies
2
Views
11K
Replies
0
Views
2K
Top