New answers tagged

2

The simple way to desired mix of im3d is following: redCubes = RandomInteger[1, {3, 3, 3}] greenCubes = RandomInteger[-1, {3, 3, 3}] cbs = Evaluate@(redCubes + greenCubes) /. {1 -> Red,-1 -> Green,0 -> Transparent}


1

Use Graphics3Dfor your purpose. Then create some positions where you want to place red and green cubes: datr = RandomInteger[{0, 5}, {50, 3}]; datg = RandomInteger[{0, 5}, {50, 3}]; Then determines the overlap and subtract the overlap: overlap = Intersection[datr, datg]; datr0 = Complement[datr, overlap]; datg0 = Complement[datg, overlap]; Finally draw the ...


Top 50 recent answers are included