gridwolfram-mathematicagraphics3d

"3d Grid" Inside the Box in Graphics3D


Please Consider :

cAxes = {{{0, 0, 0}, {0, 0, 1}}, {{0, 0, 0}, {0, 1, 0}}, {{0, 0,0}, {1, 0, 0}}};

Graphics3D[{Line /@ cAxes}, Boxed -> False]

enter image description here

Is it possible to have Grids inside the Box ? I guess "3D Grid"


Solution

  • Here is a reworked version of what I believe Verbeia was attempting:

    cAxes = {{{0, 0, 0}, {0, 0, 1}}, {{0, 0, 0}, {0, 1, 0}}, {{0, 0, 
         0}, {1, 0, 0}}};
    
    a = Graphics3D[{Line /@ cAxes}, Boxed -> False];
    
    b = Graphics3D[{
          GrayLevel[0.5],
          Table[Line /@ {{{x, y, 0}, {x, y, 1}},
                         {{x, 0, y}, {x, 1, y}},
                         {{0, x, y}, {1, x, y}}},
            {x, 0, 1, 0.25},
            {y, 0, 1, 0.25}
          ]
        }];
    
    Show[a, b]
    

    enter image description here