I want to draw the following parallelepiped but I don't have idea. Can anybody help me?

enter image description here


Preamble: You need to use tikz package. place is going to be the style for the corner points.

\tikzstyle{place}=[circle,draw=black,fill=black,inner sep=0.7, outer sep=0]

The following new commands are just for easy calculations.


Specify coordinates:


    \coordinate (a) at (0,0,0);
    \coordinate (b) at (\Width,0,0);
    \coordinate (c) at (\Width + \Skew,\Height,\Skew);
    \coordinate (d) at (\Skew,\Height,\Skew);
    \coordinate (e) at (0,0,\Depth);
    \coordinate (f) at (\Width,0,\Depth);
    \coordinate (g) at (\Width + \Skew,\Height,\Depth + \Skew);
    \coordinate (h) at (\Skew,\Height,\Depth + \Skew);

Draw the faces of the parallelopiped:

    \draw[fill=blue!30,opacity=0.6] (a) -- (b) -- (c) -- (d) -- (a);
    \draw[fill=blue!30,opacity=0.6] (a) -- (e) -- (f) -- (b) -- (a);
    \draw[fill=blue!30,opacity=0.6] (a) -- (d) -- (h) -- (e) -- (a);
    \draw[fill=blue!30,opacity=0.6] (d) -- (c) -- (g) -- (h) -- (d);
    \draw[fill=blue!30,opacity=0.6] (e) -- (f) -- (g) -- (h) -- (e);
    \draw[fill=blue!30,opacity=0.6] (b) -- (c) -- (g) -- (f) -- (b);

Draw the nodes and label them:

    \node[place, label=below right:{(4,2,1)}] at (a) {};
    \node[place, label=right:{(1,7,1)}] at (b) {};
    \node[place, label=above:{(2,9,7)}] at (c) {};
    \node[place, label=above:{(5,4,7)}] at (d) {};
    \node[place, label=below:{(8,1,0)}] at (e) {};
    \node[place, label=below:{(5,6,0)}] at (f) {};
    \node[place, label=above left:{(6,8,6)}] at (g) {};
    \node[place, label=left:{(9,3,6)}]  at (h) {};



enter image description here

    \coordinate (a) at (4,2,1);
    \coordinate (b) at (1,7,1);
    \coordinate (c) at (2,9,7);
    \coordinate (d) at (5,4,7);
    \coordinate (e) at (8,1,0);
    \coordinate (f) at (5,6,0);
    \coordinate (g) at (6,8,6);
    \coordinate (h) at (9,3,6);

You could use the actual coordinates as well. However, this does not look the same at all, though this is technically correct representation. Actual Coordinates


There must be hundreds of similar pictures. Define basis vectors, draw the planes, and label the corners. The last task can be made a bit more systematic by playing with arrays.

 \path (3,0) coordinate (ex) (80:3) coordinate (ey) (40:2.2) coordinate (ez);
  \foreach \X in {0,1}
  {\draw[fill=blue,fill opacity=0.1,canvas is xy plane at z=\X] (0,0) rectangle (1,1);
   \draw[fill=blue,fill opacity=0.15,canvas is yz plane at x=\X] (0,0) rectangle (1,1);
   \draw[fill=blue,fill opacity=0.2,canvas is xz plane at y=\X] (0,0) rectangle (1,1);
  \foreach \X in {0,1}{
    \foreach \Y in {0,1}{
        \foreach \Z in {0,1}{
            \path (\X,\Y,\Z) 
                node[circle,fill,inner sep=1.5pt,label=below:{$(\myx,\myy,\myz)$}]{}
                node[circle,fill,inner sep=1.5pt,label=above:{$(\myx,\myy,\myz)$}]{}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.