背景
很多三維曲面可看作由二維曲線繞某一個(gè)軸旋轉(zhuǎn)生成的。
MMA繪制三維旋轉(zhuǎn)圖主要是由RevolutionPlot3D函數(shù)實(shí)現(xiàn)。
若同時(shí)使用Manipulate,則實(shí)現(xiàn)旋轉(zhuǎn)角度范圍的交互操作。
演示
Manipulate[
RevolutionPlot3D[x^2, {x, 0, 2}, {\[CurlyTheta], 0, u}], {u, Pi/2, 2 Pi}]

以上只是實(shí)現(xiàn)了簡(jiǎn)單函數(shù)\(y=x^2\)的旋轉(zhuǎn)操作,基它曲線,包括由參數(shù)方程定義的曲線方法類似,具體參考RevolutionPlot3D的用法案例。
浙公網(wǎng)安備 33010602011771號(hào)