graphics - 在 Mathematica 中使用 Graphics3D 的线条样式

标签 graphics 3d wolfram-mathematica mathematica-8

考虑以下因素:

cAxes = {{{0, 0, 0}, {0, 0, 1}}, {{0, 0, 0}, {0, 1, 0}}, {{0, 0,0}, {1, 0, 0}}};

Graphics3D[{Line /@ cAxes}, Boxed -> False]

enter image description here

这 3 条线的样式如何不同?

最佳答案

上面的答案很好,但我想展示一些替代方案。

我证明可以使用 Style 来实现此目的,并且 TubeLine 的一个有趣的替代方案。

cAxes = {{{0, 0, 0}, {0, 0, 1}}, {{0, 0, 0}, {0, 1, 0}}, {{0, 0, 
     0}, {1, 0, 0}}};

tubes = Tube@# ~Style~ #2 & ~MapThread~ {cAxes, {Red, Green, Blue}};

Graphics3D[tubes, Boxed -> False]

enter image description here

关于graphics - 在 Mathematica 中使用 Graphics3D 的线条样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8115641/

相关文章:

flash - 功能还是错误? Flash Player 10 中的 3D 视角随着对象添加到舞台而变化

matlab - 如何在 Matlab 中使用 plot3 限制到某个区域?

python - python 中的 ode 集成与 mathematica 结果

wolfram-mathematica - Stephen Wolfram 的规则 30 模式说明

Java Graphics 不绘制任何东西

java - 如何在其他正方形的中心内绘制和旋转正方形?

html - source-over alpha 混合效果不佳(HTML5 Canvas )

R:图例的位置和图例中线条的长度

javascript - Three.js 在鼠标点击的地方绘制,但完全平行于相机方向

python - 在 python 中旋转 3d 对象