![중심과 반경을 모르고 네 점을 통과하는 구를 어떻게 그릴 수 있습니까?](https://rvso.com/image/405352/%EC%A4%91%EC%8B%AC%EA%B3%BC%20%EB%B0%98%EA%B2%BD%EC%9D%84%20%EB%AA%A8%EB%A5%B4%EA%B3%A0%20%EB%84%A4%20%EC%A0%90%EC%9D%84%20%ED%86%B5%EA%B3%BC%ED%95%98%EB%8A%94%20%EA%B5%AC%EB%A5%BC%20%EC%96%B4%EB%96%BB%EA%B2%8C%20%EA%B7%B8%EB%A6%B4%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F.png)
기반이 종이, 나는 Heronian Tetrahedra Are Lattice Tetrahedra를 정점 으로 갖고 O(0, 0, 0), A(15, -60, 20), B(96, 120, 128), C(63, 84, 56)
있으며
이 답변나는 노력했다
\documentclass[tikz,border=2 mm,12pt]{standalone}
\usepackage{fouriernc}
\usepackage{tikz-3dplot-circleofsphere}
\begin{document}
\tdplotsetmaincoords{75}{170}
\begin{tikzpicture}[scale=1/10,line cap=butt,line join=round,tdplot_main_coords,declare function={R= 5*sqrt(451369)/14;%
}]
\path
coordinate (O) at (0, 0, 0)
coordinate (A) at (15, -60, 20)
coordinate (B) at (96, 120, 128)
coordinate (C) at (63, 84, 56)
coordinate (I) at (-1383/14, 90/7, 1528/7)
;
\begin{scope}[tdplot_screen_coords]
\draw[thick] (I) circle (R);
\end{scope}
\end{tikzpicture}
\end{document}
Dimension이 너무 커서 결과를 얻을 수 없습니다. 구의 중심 좌표와 반경을 계산하지 않고 통과하는 구를 어떻게 그릴 수 있습니까 O, A, B, C
?
답변1
방금 휴대용 계산기를 사용했습니다.
\documentclass[tikz,border=2 mm,12pt]{standalone}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{75}{170}
\begin{tikzpicture}[scale=1/10,line cap=butt,line join=round,tdplot_main_coords]
\path
coordinate (O) at (0, 0, 0)
coordinate (A) at (15, -60, 20)
coordinate (B) at (96, 120, 128)
coordinate (C) at (63, 84, 56)
coordinate (I) at (-98.79, 12.86, 218.29)
;
\begin{scope}[tdplot_screen_coords]
\draw[thick] (I) circle (239.94);
\end{scope}
;
\draw[thick] (O)--(A) (O)--(B) (O)--(C) (A)--(B) (A)--(C) (B)--(C);
\end{tikzpicture}
\end{document}
답변2
귀하의 질문이 오류를 제거하는 방법에 관한 것이라면 dimension too large
가능한 대답은 다음과 같습니다: with fpu
.
\documentclass[tikz,border=2 mm,12pt]{standalone}
\usepackage{fouriernc}
\usepackage{tikz-3dplot-circleofsphere}
\usetikzlibrary{fpu}
\def\pgfmathsetmacroFPU#1#2{\begingroup%
\pgfkeys{/pgf/fpu,/pgf/fpu/output format=fixed}%
\pgfmathsetmacro{#1}{#2}%
\pgfmathsmuggle#1\endgroup}%
\begin{document}
\tdplotsetmaincoords{75}{170}
\begin{tikzpicture}[scale=1/10,line cap=butt,line join=round,tdplot_main_coords,
%declare function={R= 5*sqrt(451369/(14*14));% }
]
\pgfmathsetmacroFPU{\myR}{5*sqrt(451369)/14}
\path
coordinate (O) at (0, 0, 0)
coordinate (A) at (15, -60, 20)
coordinate (B) at (96, 120, 128)
coordinate (C) at (63, 84, 56)
coordinate (I) at (-1383/14, 90/7, 1528/7)
;
\begin{scope}[tdplot_screen_coords]
\draw[thick] (I) circle[radius=\myR];
\end{scope}
\end{tikzpicture}
\end{document}