答案1
像这样吗?
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\begin{document}
\def\windingnumber{5}
\begin{tikzpicture}
\begin{axis}[samples y=0,hide axis,no markers,thick,samples=501,%
xmin=-1,xmax=1,ymin=-1,ymax=1,zmin=-1,zmax=1,
width=10cm, height=10cm]
\addplot3+[domain=-1:1]
(x/sqrt(2),{sqrt(1-x^2)*cos(180*x*\windingnumber)},{sqrt(1-x^2)*sin(180*x*\windingnumber)});
\end{axis}
\end{tikzpicture}
\end{document}
答案2
使用 PSTricks 的解决方案。
\documentclass[pstricks,margin=1cm]{standalone}
\usepackage{pst-solides3d}
\begin{document}
\begin{pspicture}[viewpoint=50 20 10 rtp2xyz,Decran=50,linewidth=.4pt](-1,-1)(1,1)
\defFunction[algebraic]{f}(t){cos(10*t)*cos(t)}{sin(10*t)*cos(t)}{sin(t)}
\psSolid[object=courbe,range=PiDiv2 neg PiDiv2,function=f,r=0.005]
\end{pspicture}
\end{document}
其他版本
\documentclass[pstricks]{standalone}
\usepackage{pst-rubans}
\begin{document}
\begin{pspicture}(-5,-5)(5,5)
\psset{viewpoint=50 20 40,Decran=50,resolution=720,lightsrc=viewpoint}
\psSphericalSpiral[R=4,fillcolor=orange,grid,dPHI=1]
\end{pspicture}
\end{document}