با سلام
برای سهبعدی کردن شکلی که ضمیمه شده چه پیشنهادی دارید؟
شکل از extrude شدن یک پروفیل ایجاد میشود (شکل منشوری است).
با تشکر
\documentclass{book}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{calc, math, arrows.meta}
\usetikzlibrary{hobby,decorations.pathreplacing}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{1mm}%
\usepackage{fontspec}
\usepackage{pgf}
\usepackage{pgfplots}
\usepgfplotslibrary{polar}
\usepackage[localise=on, Kashida=on]{xepersian}
\settextfont[Scale=1.1]{Yas} % Yas
\setdigitfont[Scale=1.1]{Yas}
\setmathsfdigitfont[Scale=1.1]{Yas} %Yas
\begin{document}
\begin{tikzpicture}
%% convas
%\draw [->, color=red] (0,0,0) -- (2,0,0) node [at end, right] {$x$};
%\draw [->, color=blue] (0,0,0) -- (0,2,0) node [at end, left] {$y$};
%\draw [->, color=orange] (0,0,0) -- (0,0,2) node [at end, left] {$z$};
% back profile
\coordinate (A1) at (-1.9,0, 0);
\coordinate (A2) at (-2.07,1, 0);
\coordinate (A3) at (-1.57,2, 0);
\coordinate (A4) at (-0.4,2.5, 0);
\coordinate (A5) at (1.2,2, 0);
\coordinate (A6) at (2,1, 0);
\coordinate (A7) at (2.3,0, 0);
\coordinate (A8) at (2.3,-1, 0);
\coordinate (A9) at (1.8,-2, 0);
\coordinate (A10) at (1.4,-2.3, 0);
\coordinate (A11) at (0.5,-2, 0);
\coordinate (A12) at (-0.15,-1, 0);
\draw [black, very thick, fill = gray!10]
(A1) to [closed, curve through = {(A2) .. (A3) .. (A4) .. (A5) .. (A6) .. (A7) .. (A8) .. (A9) .. (A10) .. (A11) .. (A12) }] (A1);
% front profile (shift)
\coordinate (B1) at (-1.9,0, 10);
\coordinate (B2) at (-2.07,1, 10);
\coordinate (B3) at (-1.57,2, 10);
\coordinate (B4) at (-0.4,2.5, 10);
\coordinate (B5) at (1.2,2, 10);
\coordinate (B6) at (2,1, 10);
\coordinate (B7) at (2.3,0, 10);
\coordinate (B8) at (2.3,-1, 10);
\coordinate (B9) at (1.8,-2, 10);
\coordinate (B10) at (1.4,-2.3, 10);
\coordinate (B11) at (0.5,-2, 10);
\coordinate (B12) at (-0.15,-1, 10);
\draw [black, very thick, , fill = gray!20]
(B1) to [closed, curve through = {(B2) .. (B3) .. (B4) .. (B5) .. (B6) .. (B7) .. (B8) .. (B9) .. (B10) .. (B11) .. (B12)}] (B1);
% back hole profile
\coordinate (C1) at (-0.2,0.67);
\coordinate (C2) at (-0.8,0.8);
\coordinate (C3) at (-0.8,1.5);
\coordinate (C4) at (0,1.72);
\coordinate (C5) at (0.5,1.4);
\coordinate (C6) at (0.7,0.8);
\coordinate (C7) at (0.5,0.4);
\draw [black, very thick, fill=white, dashed]
(C1) to [closed, curve through = {(C2) .. (C3) .. (C4) .. (C5) .. (C6) .. (C7)}] (C1);
% front hole profile
\coordinate (D1) at (-0.2,0.67, 10);
\coordinate (D2) at (-0.8,0.8, 10);
\coordinate (D3) at (-0.8,1.5, 10);
\coordinate (D4) at (0,1.72, 10);
\coordinate (D5) at (0.5,1.4, 10);
\coordinate (D6) at (0.7,0.8, 10);
\coordinate (D7) at (0.5,0.4, 10);
\draw [black, very thick, fill=white,]
(D1) to [closed, curve through = {(D2) .. (D3) .. (D4) .. (D5) .. (D6) .. (D7)}] (D1);
\draw [] (A3) -- (B3);
\draw [] (A4) -- (B4);
\draw [] (A5) -- (B5);
\draw [] (A6) -- (B6);
\draw [] (A7) -- (B7);
\draw [] (A8) -- (B8);
\draw [] (A9) -- (B9);
\draw [dashed] (C1) -- (D1);
\draw [dashed] (C2) -- (D2);
\draw [dashed] (C3) -- (D3);
\draw [dashed] (C4) -- (D4);
\draw [dashed] (C5) -- (D5);
\draw [dashed] (C6) -- (D6);
\draw [dashed] (C7) -- (D7);
\end{tikzpicture}
\end{document}