4

i figured out how to draw the 3d effect cubes, but now im facing the issue of the border lines extending beyond the points where they meet. i know that by doing "draw=none" i can turn these off, but i prefer the borders. is there an obvious fix for this? (also, I have seen rounded corners, but I'm not wanting to go this route either)

Here's the code:

\documentclass[border=.5cm]{standalone}

\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}

\pagecolor{black}

\begin{tikzpicture}[on grid, font=\sffamily, line width=.2mm]

\draw[draw=white, fill=blue!65, yslant=-0.5] (5,5) rectangle (6,6);

\draw[draw=white, fill=blue!95, yslant=0.5] (6,-1) rectangle (7,-0);

\draw[draw=white, fill=blue!45, yslant=0.5, xslant=-1] (6,0) rectangle (7,1);

\end{tikzpicture}

\end{document}

problem

Also, here's a screen grab of the problem (it happens on other corners too):

jimmy sandusky
  • 201
  • 1
  • 4
  • Whoa! I didn't mean to unilaterally close this! Obviously, the rules have changed since I last voted to close a question. If the linked question doesn't answer your problem, edit your question to explain why and it'll get reopened. – Andrew Stacey Jul 12 '15 at 18:16
  • See also my answer here: http://tex.stackexchange.com/a/30102/86 – Andrew Stacey Jul 12 '15 at 18:18
  • @LoopSpace I'll delete my answer, then, since this is a duplicate. Does your clipping approach work here? Slants are being used here for the sides of the cube. – Gonzalo Medina Jul 12 '15 at 18:32
  • @GonzaloMedina Yes, the clipping approach does work here. – Andrew Stacey Jul 12 '15 at 21:08

0 Answers0