回帖0
精华
阅读权限70
在线时间 小时
听众
收听
好友
|
发表于 2017-10-18 09:41:46
|
显示全部楼层
对,我改一下。
只出现线框展示可能会好一些。
- {a, b, c} = {3, 4, 5};
- \[Theta] = ArcSin[Sqrt[(1/a^2 - 1/b^2)/(1/a^2 + 1/c^2)]];
- Animate[
- ContourPlot3D[
- x^2/a^2 + y^2/b^2 - z^2/c^2 == 1, {x, -10, 10}, {y, -10,
- 10}, {z, -12, 12},
- RegionFunction ->
- Function[{x, y, z}, -t <= Sin[\[Theta]] x + Cos[\[Theta]] z <= t],
- ViewPoint -> {Sin[\[Theta]], 0, Cos[\[Theta]]}, PlotPoints -> 20,
- MeshFunctions -> {Sin[\[Theta]] #1 + Cos[\[Theta]] #3 &},
- MeshStyle -> {Cyan, Thick}, ContourStyle -> None, Boxed -> False,
- Axes -> False],
- {t, 1, 8, 0.5}, AnimationRunning -> False]
复制代码
电脑运行的时候比较卡
- {a, b, c} = {3, 4, 5};
- \[Theta] := ArcSin[Sqrt[(1/a^2 - 1/b^2)/(1/a^2 + 1/c^2)]];
- Animate[Show[
- Table[ImplicitRegion[{x^2/a^2 + y^2/b^2 - z^2/c^2 == 1 &&
- Sin[\[Theta]] x + Cos[\[Theta]] z == t}, {x, y, z}] //
- Region[#, ViewPoint -> {Sin[\[Theta]], 0, Cos[\[Theta]]},
- BaseStyle -> Directive[Cyan, Thick]] &, {t, 0, s, 0.5}]], {s, 1,
- 8, 0.5}, AnimationRunning -> False]
复制代码
|
|