用Mathematica制作镂空曲面

 时间:2026-04-22 01:16:58

1、画一个球面:

ContourPlot3D[x^2 + y^2 + z^2 == 1, {x, -1,  1}, {y, -1, 1}, {z, -1, 1}

用Mathematica制作镂空曲面

2、在z方向上绘制15条网格线:

ContourPlot3D[

 x^2 + y^2 + z^2 == 1, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, 

 MeshFunctions -> {#3 &}, Mesh -> 15

用Mathematica制作镂空曲面

3、在y方向和z方向上,各绘制15条网格线:

ContourPlot3D[

 x^2 + y^2 + z^2 == 1, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, 

 MeshFunctions -> {#3 &, #2 &}, Mesh -> 15

用Mathematica制作镂空曲面

4、变异的网格线:

ContourPlot3D[

 x^2 + y^2 + z^2 == 1, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, 

 MeshFunctions -> {#3*#2 &}, Mesh -> 15, PlotPoints -> 50

用Mathematica制作镂空曲面

5、对网格线之间的区域,分别着色:

 MeshShading -> {None, Directive[Blue, Specularity[White, 50]], None, 

   Directive[Yellow, Specularity[White, 50]]}

有一些区域没有着色,所以看起来是镂空的。

用Mathematica制作镂空曲面

6、下面图形的网格线使用的是:

MeshFunctions -> {#1^2 + #1*#2*#3 &}

用Mathematica制作镂空曲面

用Mathematica制作镂空曲面

  • mathematica教程
  • 用Mathematica研究曲线论(二)
  • 【Mathematica】在沙漠上绘制彩虹
  • 手把手教你matlab字符串知识(2)
  • 用mathstudio计算函数的导数
  • 热门搜索
    新生婴儿拉稀怎么办 喝酒脸红怎么办 亿健跑步机怎么样 dnf公会副本怎么进 人的繁体字怎么写 蝎子辫怎么编 甲状腺结节怎么治疗 安利产品怎么样 怎么考教师资格证 牛奶布丁怎么做