Buggy behavior of tkzMarkAngle

As you mentioned, there seems to be an odd behaviour of \tkzMarkAngle and \tdplotsetmaincoords. As a work-around, you could use the angles library:

\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tikz,tikz-3dplot}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{angles}

\begin{document}

\tdplotsetmaincoords{0}{315}
\begin{tikzpicture}[tdplot_main_coords]
  \coordinate (OX) at (1,0,0);
  \coordinate (OO) at (0,0,0);
  \coordinate (OY) at (0,1,0);
%  \tkzMarkAngle[fill=purple](OX,OO,OY)
  \draw (OY) -- (OO) -- (OX)
     pic[fill=purple!20,angle radius=9mm] {angle = OX--OO--OY};
\end{tikzpicture}

\end{document}

The result:

enter image description here

A longer example; the bending library was added to improve the look for the curved arrows:

\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tikz,tikz-3dplot}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{angles,bending}

\begin{document}

\tdplotsetmaincoords{30}{120}
\begin{tikzpicture}[
  tdplot_main_coords,
  markangle/.style={draw,->,>=latex}
]
  \coordinate (OX) at (1,0,0);
  \coordinate (OO) at (0,0,0);
  \coordinate (OY) at (0,1,0);
  \coordinate (OZ) at (0,0,2);
  \path
    pic[fill=purple!20,angle radius=5mm,markangle] {angle = OY--OO--OZ}
    pic[fill=green!20,angle radius=5mm,markangle] {angle = OX--OO--OY}
    pic[fill=blue!20,angle radius=5mm,markangle] {angle = OZ--OO--OX};
  \draw 
    (OX) -- (OO) 
    (OY) -- (OO) 
    (OZ) -- (OO); 
%  \tkzMarkAngle[fill=purple](OX,OO,OY)
\end{tikzpicture}

\end{document}

enter image description here


Certainly a bug. You can the new version of tkz-euclide v2.42 (beta) here

enter image description here