Timeline for How I calculate the volume of multiple intersecting spheres?
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 7, 2015 at 22:04 | comment | added | Derb | I agree. Anyhow, your solution helped me. Thank you very much! | |
| Feb 7, 2015 at 3:52 | comment | added | Bob Hanlon | Neither RegionMeasure nor Volume worked for nine or more Balls on my system. Perhaps the level of complexity causes the calculation to exceed some time limit. You might try subdividing the region, sum the volume of the subregions, and subtract the intersections of the subregions. | |
| Feb 7, 2015 at 2:38 | comment | added | Derb | Bob, yes, it worked for me too. I included more two balls and it didn't work anymore. Same error. I think it must be my system. Does it work for you with 10? rgn2 = RegionUnion[Ball[{100., 100., 100.}, 30.], Ball[{120., 120., 120.}, 30.], Ball[{130., 130., 130.}, 30.], Ball[{140., 140., 140.}, 30.], Ball[{190., 190., 190.}, 30.], Ball[{200., 200., 200.}, 30.], Ball[{210., 210., 210.}, 30.], Ball[{230., 230., 230.}, 30.], Ball[{135., 130., 130.}, 30.], Ball[{140., 140., 140.}, 30.], Ball[{195., 190., 190.}, 30.], Ball[{200., 200., 200.}, 30.]]; RegionMeasure[rgn2] | |
| Feb 7, 2015 at 0:50 | comment | added | Bob Hanlon | Example above with eight balls worked without a problem. | |
| Feb 7, 2015 at 0:49 | history | edited | Bob Hanlon | CC BY-SA 3.0 | Added example with eight elements. |
| Feb 6, 2015 at 20:51 | comment | added | Derb | Again, thank you, this helped me. It works nicely for up to 4 to 5 randomly distributed spheres. But any number of spheres which is higher brings up the following message:RegionMeasure::nmet: Unable to compute the measure of region RegionUnion[Ball[{100.,100.,100.},30.],Ball[{120.,120.,120.},30.],Ball[{130.,130.,130.},30.],Ball[{140.,140.,140.},30.],<<1>>,<<1>>,Ball[{190.,190.,190.},30.],Ball[{200.,200.,200.},30.],Ball[{210.,210.,210.},30.],Ball[{230.,230.,230.},30.]]. >> Any idea what it could be? I have this problem also for two more solution proposed here. | |
| Feb 5, 2015 at 17:51 | comment | added | Derb | This helped me! The calculation is fast and I can extend the solution to multiple spheres. Many thanks! | |
| Feb 5, 2015 at 17:50 | vote | accept | Derb | ||
| Feb 5, 2015 at 4:38 | history | answered | Bob Hanlon | CC BY-SA 3.0 |