Laurenso
How to draw a cylinder in 3D with A(1,4,3), B(5,0,3) AB as hight of the cyclinder and radius of base of circles equal to 2?
![image.png](/image?hash=cb37b9922c7f23a487f0a8378f36977aeef0c44ecebbec458f8dc58a1f3d3119)

I tried

\documentclass[border=3.14mm]{standalone}
\usepackage{tikz,tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{70}{70}
\begin{tikzpicture}[tdplot_main_coords]
\path
(1,4,3) coordinate (A) node[above]{$A$}
(5,0,3) coordinate (B) node[below]{$B$};
\draw [dashed] (A) -- (B);
\end{tikzpicture}
\end{document}

![image.png](/image?hash=13bec25495dc995b917bca68a50d80e3c81333227fb449fc654aa8c2a32bb461)
Anonymous 2412

\documentclass{article}
\usepackage{ProfCollege}
\begin{document}
\Solide[%
Theta=-70,
Nom=cylindre,
RayonCylindre=2,
HauteurCylindre=2,
Anglex=90,
ListeSommets={A,B},
Axes,
Traces={%
Label.ulft(btex B etex,B);
Label.ulft(btex A etex,A);
color I;
I=1/2[A,B];
DotLabel.ulft(btex I etex,I);
}
]
\end{document}

% Local Variables:
% TeX-engine: luatex
% End:

![Cylindre.png](/image?hash=86870bb830949e705486f32052688cd430c7e54172d6d4b79d06a91dbce6c5ee)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.