Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The solution to How to fix TixZ corners in 3D was to use line join=round instead of line join=miter. But I am trying to understand why that is not the default. Under what circumstances would "line join=miter" come in handy?

In the TikZ manual it seems that miter option is useful for sharp corners, but the figure I was having problems with had sharp corners. Or is the rule of thumb: use miter option for sharp corners in 2D diagrams, but round for 3D?

share|improve this question

1 Answer 1

up vote 11 down vote accepted

The miter option is more "correct" in that it doesn't add new corners to a shape or introduce rounding. In some cases with very sharp angles, the results might be undesirable though, as in the question you linked to. Consider a right angle with different join types: These could be corners of a rectangle. Only the standard miter option would be what you would intuitively expect.

different join types


\begin{tikzpicture}[line width=10pt]
\draw [line join=miter] (0,0) -- (0,1) -- (1,1) node [pos=0.5,label=above:miter] {};
\draw [line join=bevel,xshift=1.5cm] (0,0) -- (0,1) -- (1,1) node [pos=0.5,label=above:bevel] {};
\draw [line join=round,xshift=3cm] (0,0) -- (0,1) -- (1,1)node [pos=0.5,label=above:round] {};
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.