Credit: https://tex.stackexchange.com/a/727949/319072
Is there a way to automate the drawing of angles in 3d perspective? The angles library just draws them on the screen plane. I can do it manually, but the process is extremely time consuming.
\documentclass[tikz, border=1cm]{standalone} \usepackage{tikz-3dplot} \usetikzlibrary{calc,angles} \begin{document} \tdplotsetmaincoords{60}{130} \begin{tikzpicture}[tdplot_main_coords] \pgfmathsetmacro\pa{2} \pgfmathsetmacro\pb{2} \pgfmathsetmacro\pc{1} \pgfmathsetmacro\qa{-1} \pgfmathsetmacro\qb{2} \pgfmathsetmacro\qc{2} \pgfmathsetmacro\ra{1} \pgfmathsetmacro\rb{-1} \pgfmathsetmacro\rc{2} \pgfmathsetmacro\qpa{\pa-\qa} \pgfmathsetmacro\qpb{\pb-\qb} \pgfmathsetmacro\qpc{\pc-\qc} \pgfmathsetmacro\qpl{sqrt((\qpa)^2 + (\qpb)^2 + (\qpc)^2)} \pgfmathsetmacro\qpa{\qpa/\qpl} \pgfmathsetmacro\qpb{\qpb/\qpl} \pgfmathsetmacro\qpc{\qpc/\qpl} \pgfmathsetmacro\qra{\ra-\qa} \pgfmathsetmacro\qrb{\rb-\qb} \pgfmathsetmacro\qrc{\rc-\qc} \pgfmathsetmacro\qrl{sqrt((\qra)^2 + (\qrb)^2 + (\qrc)^2)} \pgfmathsetmacro\qra{\qra/\qrl} \pgfmathsetmacro\qrb{\qrb/\qrl} \pgfmathsetmacro\qrc{\qrc/\qrl} \tdplotcrossprod(\qpa,\qpb,\qpc)(\qra,\qrb,\qrc) \pgfmathsetmacro\za{\tdplotresx} \pgfmathsetmacro\zb{\tdplotresy} \pgfmathsetmacro\zc{\tdplotresz} \coordinate (P) at (\pa,\pb,\pc); \coordinate (Q) at (\qa,\qb,\qc); \coordinate (R) at (\ra,\rb,\rc); \coordinate (QP) at (\qpa,\qpb,\qpc); \coordinate (QR) at (\qra,\qrb,\qrc); \coordinate (Z) at (\za,\zb,\zc); \draw[<->] (P) -- (Q) -- (R); \begin{scope}[ x={(QP)}, y={(QR)}, z={(Z)}, canvas is xy plane at z=0 ] \draw[red] ($(Q) + (QP)$) arc[start angle=0, end angle=90, radius=1]; \draw pic[draw,blue,-, angle radius=1cm,]{angle=R--Q--P}; \end{scope} \end{tikzpicture} \end{document} 




transform shapeas in\draw pic[draw, blue, angle radius=1cm, transform shape] {angle=P--Q--R};.