Un parallèlipipède avec Latex

📅 February 10, 2024   |   👁️ Views: 87




\documentclass{standalone}
\standaloneconfig{border=2mm 2mm 2mm 2mm}

\usepackage{tikz}

\begin{document}
  \begin{tikzpicture}[scale=3]
    % Define the vertices
      \coordinate (A) at (0,0,1);
      \coordinate (B) at (3,0,1);
      \coordinate (C) at (3,0,0);
      \coordinate (D) at (0,0,0);
      \coordinate (E) at (0,1,1);
      \coordinate (F) at (3,1,1);
      \coordinate (G) at (3,1,0);
      \coordinate (H) at (0,1,0);

      % Draw the edges of the cube
      \draw (A) -- (B) -- (C); \draw[dashed] (C) -- (D) -- (A);
      \draw (E) -- (F) -- (G) -- (H) -- cycle; % top
      \draw (A) -- (E); \draw (B) -- (F); \draw (C) -- (G); \draw[dashed] (D) -- (H); % vertical

      % Label the vertices
      \foreach \vertex/\position in {A/below left,B/below right,C/above right,D/above left,E/above left,
        F/below right,G/above right,H/above left}
        {
          \fill (\vertex) node[\position] {$\vertex$};
        }
  \end{tikzpicture}
\end{document}

Related Courses, Exams, and Exercises


Course PDF:

📥 Download Un parallèlipipède avec Latex (PDF)

if you find this content helpful, Please consider supporting me with a small donation
إن وجدت هذا المحتوى مفيدا، من فضلك إدعمني بمبلغ بسيط كتبرع

Buy me a coffee — إشتر لي قهوة

PayPal.me • عبر بايبال

Or bank transfer • أو حوالة بنكية

Titulaire : RADOUAN MOSAID
RIB : 230 090 6501953211022000 65
IBAN : MA64 2300 9065 0195 3211 0220 0065
BIC / SWIFT : CIHMMAMC

QR Code for Bank Transfer