Say I'm drawing a 3D picture. Now I would like to draw a circle, perspectively correct, on the yz-plane, but TikZ does not seem to be capable of this. All one can do is drawing circles on the xy-plane. Also ellipses, which take two radii, are drawn on the xy-plane only. I know I can use rotate
to rotate ellipses, but this is not really straightforward, as it involves calculating rotation angles and radii.
So is there anyway to tell TikZ
to draw on a certain plane? Or is there any other fancy package fo it?
Just for illustration:
\documentclass[parskip]{scrartcl}
\usepackage[margin=15mm]{geometry}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0,0) -- (0,4,0) -- (0,4,4) -- (0,0,4) -- cycle;
\draw (0,2,2) circle (2);
\end{tikzpicture}
\end{document}
which produces
Obviousely, I would like to draw the circle in the yz-plane. This would look like an ellipse, fitting perfectly in the yz-plane square (which, due to perspective looks like a parallelogram).
Best Answer
Two examples of what you can draw with the 3d library. The first on has been modified because something was wrong with shade colour.