我该如何填充该图片的两个抛物线之间?

我该如何填充该图片的两个抛物线之间?

我想在这张图片的两个抛物线之间进行填充,但不正确。我试过:

\documentclass[12pt,border=5mm]{standalone}
\usepackage{tikz}
\usepackage{tikz-3dplot}

\usepackage{fouriernc}
\usetikzlibrary{calc}
\tikzset{hidden/.style = {thick, dashed}}
\newcommand{\RightAngle}[4][2.5pt]{%
        \draw ($#3!#1!#2$)
        --($ #3!2!($($#3!#1!#2$)!.5!($#3!#1!#4$)$) $)
        --($#3!#1!#4$) ;
        }
\begin{document}

\newcommand\pgfmathsinandcos[3]{%
\pgfmathsetmacro#1{sin(#3)}%
\pgfmathsetmacro#2{cos(#3)}%
}
\begin{tikzpicture}[scale=1]
\pgfmathsetmacro\AngleFuite{120}
\pgfmathsetmacro\coeffReduc{.8}
\pgfmathsetmacro\clen{2}
\pgfmathsinandcos\sint\cost{\AngleFuite}
\begin{scope} [x = {(\coeffReduc*\cost,-\coeffReduc*\sint)},
y = {(1cm,0cm)},
z = {(0cm,1cm)}]
\path coordinate (O) at (0,0,0)
coordinate (M) at (0,4,0)
coordinate (N) at (-3.46,2,0)
coordinate (P) at (-3.46,-2,0)
coordinate (Q) at (0,-4,0)
coordinate (R) at (3.46,-2,0)
coordinate (S) at (3.46,2,0)
coordinate (T) at (0,0,10)
coordinate (O) at (0,0,0)
;
\draw[ dashed] (O)--(N) (O)--(M) (O)--(P) (O)--(Q) (O)--(R) (O)--(S) ;
\draw[dashed] (N)--(P) (P)--(Q) (O)--(T);
\draw[thick] (Q)--(R) (R)--(S) (S)--(M) (M)--(N) ;
\draw[thick,blue] (N)parabola(T) (Q)parabola(T) (R)parabola(T) (S)parabola(T) (M)parabola(T);
\draw[thick,dashed] (P)parabola(T) ;
\end{scope}
\foreach \v/\position in {N/right,M/right,P/right,O/below,Q/left,R/below,S/below,T/right} {
\draw[fill=black] (\v) circle (2pt) node [\position=5] {$\v$};
}
\draw [fill opacity=0.4,fill=orange!80!blue] (R) parabola (T) parabola (S);
\end{tikzpicture}
\end{document}

在此处输入图片描述

我该如何修复?

答案1

使用[bend at end]如果你想翻动抛物线。也就是说,(S) parabola (T)相当于(T) parabola[bend at end] (S)。请参阅手册第 155 页。

在你的情况下,更换

\draw [fill opacity=0.4,fill=orange!80!blue] (R) parabola (T) parabola (S);

经过

\draw[fill opacity=0.4,fill=orange!80!blue](R)parabola(T)parabola[bend at end](S);

相关内容