我怎样才能画出这个圆的虚线弧?

我怎样才能画出这个圆的虚线弧?

我想画虚线圆弧AB(从后面)从此图中的圆的 A 到 B。在 Oxy 平面中,A 的坐标为 (0,4),A 的坐标为 (3,{-sqrt(7)}),并且位于圆上的方程为x^2 + y^2 =16

根据 cfr'code,我尝试过。

\documentclass[12pt,border=3mm]{standalone}
\usepackage{fouriernc}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usepackage{tikz-3dplot}
\usetikzlibrary{calc,backgrounds}
\begin{document}
\tdplotsetmaincoords{60}{110}
\begin{tikzpicture}
[scale=1,tdplot_main_coords]

\path
coordinate (O) at (0,0,0)
coordinate (T) at  (0,0,3)
coordinate (B) at  (3,{-sqrt(7)},0)
coordinate (A) at  (0,4,0);
\draw[thick, dashed]
(O)--(T)
(O)--(A)
(A)--(T);

\foreach \v/\position in {T/above,O/below,A/below,B/below} {
    \draw[draw =black, fill=black] (\v) circle (1.2pt) node [\position=0.2mm] {$\v$};
}
\begin{scope}[tdplot_screen_coords, on background layer]
\pgfmathsetmacro{\R}{5}%
\pgfmathsetmacro{\r}{4}%
\fill[ball color=cyan!50, opacity=1.0] (T) circle (\R); 
  \draw[thick] (-\r,0) arc (180:360:\r{} and 2);
  \draw [dashed] (\r,0) arc (0:180:\r{} and 2);
\end{scope}
\tkzMarkRightAngle[size = 0.3](T,O,A);
\end{tikzpicture}
\end{document} 

在此处输入图片描述

With calculating, I solved my problem.

\usepackage{fouriernc}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usepackage{tikz-3dplot}
\usetikzlibrary{calc,backgrounds}
\begin{document}
\tdplotsetmaincoords{60}{110}
\begin{tikzpicture}
[scale=1,tdplot_main_coords]
\path
coordinate (O) at (0,0,0)
coordinate (T) at  (0,0,3)
coordinate (B) at  (3,{-sqrt(7)},0)
coordinate (A) at  (0,4,0);
\draw[thick, dashed] (O) -- (A) node[midway,sloped,below] {$r$};
\draw[thick, dashed] (T) -- (A) node[midway,right] {$R$};
\draw[thick, dashed] (T) -- (O) node[midway,left] {$d$};
\foreach \v/\position in {T/above,O/below,A/below,B/below} {
    \draw[draw =black, fill=black] (\v) circle (1.2pt) node [\position=0.2mm] {$\v$};
}
\begin{scope}[tdplot_screen_coords, on background layer]
\pgfmathsetmacro{\R}{5}%
\pgfmathsetmacro{\r}{4}%
\fill[ball color=cyan!50, opacity=1.0] (T) circle (\R);
\end{scope}
\tkzMarkRightAngle[size = 0.3](T,O,A);
\draw [thick] (B) arc (318.5:450:4);
\draw [thick, dashed] (A) arc (90:318.5:4);
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容