|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
first steps with 3-D drawingsHi, I'm trying to do first steps with creating three-dimensional drawings
My next step are currently the examples shown on Kjell's great
Regards, Juergen % Author: Andreas Menge
\begin{comment}
A simple graph-model in 3D with a helping grid but not with a rotation of 45 degrees to avoid overlapping edges. The graph lines are drawn with a white background to visualize the ones closer to the viewer and hence improve the 3D-view. Code duplication is reduced. \end{comment} %transforms all coordinates the same way when used (use it within a scope!)
% draw a 4x4 helper grid in 3D
\tikzstyle myBG=[line width=3pt,opacity=1.0] % draws lines with white background to show which lines are closer to the
% draws all horizontal graph lines within grid
% draws all vertical graph lines within grid
%draws nodes of the grid
\begin{document}
\begin{tikzpicture} %draws helper-grid:
%draws lower graph lines and those in z-direction:
%draws all graph lines in z-direction (reset transformation first!):
%draws upper graph-lines:
% draws all graph nodes:
\end{tikzpicture} \end{document} ------------------------------------------------------------------------------ _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: first steps with 3-D drawings"Goebel, Juergen" <juergen.goebel@...> writes:
> My next step are currently the examples shown on Kjell's great > TikZ-page. Here arouses the following question. When analyzing the > example 3d-graph-model.tex by Andreas Menge I tried to integrate a > circle. But it seems that the pgftransformcm and my definition of the > circle (in line 62) don't harmonize. I'd really appreciate it if > someone can give me a hint where my mistake is. I typeset the file, and I don't see what you mean by "don't harmonize". Maybe it would help if you try to explain it. Also it would help if you reduce the example to some really minimal elements. Best regards. ------------------------------------------------------------------------------ _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: first steps with 3-D drawings> Rafael wrote:
> I typeset the file, and I don't see what you mean by "don't > harmonize". Maybe it would help if you try to explain it. > Also it would > help if you reduce the example to some really minimal elements. > Best regards. Ok, let me try it again. During the weekend I played a bit with TikZ. So my question changes to ... When pdfLaTeXing the following example the text isn't transformed. Of course I can achieve this manually with xslant and yslant, but this is far from being elegant. I'm quite sure that there is a better way. What do I have to do? Greetings, Juergen \documentclass[10pt]{article} \usepackage{tikz} \usepackage{verbatim} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt}% \newcommand{\cubeface}[2]{% \fill[#1,opacity=0.25] (1,1) circle (1cm); \draw[miter limit=1] (0,0) rectangle (2,2); \draw[#1!50,thin,shorten >= 3pt,shorten <= 3pt] (0,0) -- (2,2); \draw[#1!50,thin,shorten >= 3pt,shorten <= 3pt] (0,2) -- (2,0); \path (1,1) node[font=\small\bfseries,text=#1!50!black] {#2}; } \begin{document} \begin{tikzpicture} \pgftransformcm{1}{0}{0.4}{0.5}{\pgfpoint{0cm}{0cm}} \cubeface{blue}{unten} \pgftransformreset \pgftransformcm{1}{0}{0}{1}{\pgfpoint{0.8cm}{1cm}} \cubeface{red}{hinten} \pgftransformreset \pgftransformcm{0.4}{0.5}{0}{1}{\pgfpoint{0cm}{0cm}} \cubeface{red}{links} \pgftransformreset \pgftransformcm{0.4}{0.5}{0}{1}{\pgfpoint{2cm}{0cm}} \cubeface{red}{rechts} \pgftransformreset \cubeface{red}{vorn} \pgftransformcm{1}{0}{0.4}{0.5}{\pgfpoint{0cm}{2cm}} \cubeface{green}{oben} \end{tikzpicture} \end{document} ------------------------------------------------------------------------------ _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
| Free embeddable forum powered by Nabble | Forum Help |