I realize there are a couple of questions about cylinders in Tikz, but I haven't figured out how to add them to my image.
I have something like:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,3d,arrows,shapes}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{70}{46+90} % rotate 60 degrees around x axis, then 105 degrees about z
\begin{tikzpicture}[>=stealth', % arrow tip
tdplot_main_coords, %
scale=0.5 % scale
]
% XYZ axis
\draw[thick,->] (0,0,0) -- (6,0,0) node[anchor=north east]{\textbf{x}};
\draw[thick,->] (0,0,0) -- (0,6,0) node[anchor=north]{\textbf{y}};
\draw[thick,->] (0,0,0) -- (0,0,6) node[anchor=south]{\textbf{z}};
\draw[dotted] (0,0,0) circle (15);
\draw plot [mark=*, mark size=3] coordinates{(15,0,0)} node[anchor=south east]{S};
% my lousy attempt
\node [cylinder,draw=black,thick,aspect=0.5,minimum height=1cm,minimum width=0.25cm,shape border
rotate=0,cylinder uses custom fill, cylinder body fill=red!30,cylinder end fill=red!5] at (15,0,0){S};
\end{tikzpicture}
\end{document}
Where there is a 3D coordinate system, and a big circle with an specific coordinate "S" on where I want a cylinder, oriented towards (0,0,0). However I can't seem to achieve this orientation.
If the only way to approach this is to manually draw the cylinder, then I have a problem with joining the "lids". I can draw 2 filled circles in another orientation than XY plane (as @john Kormylo shows in the comments) but I have no idea how to "attach" those circles
\documentclass...
;. The best option might be to draw the cylinder rather than using a node. That way, you can use thetikz-3dplot
stuff for the rotation and calculations?