graphics - 使用 Mathematica 中的图形以 3D 形式显示多个 2D 绘图?

标签 graphics 3d wolfram-mathematica

考虑到以下几点:

lalist = {{{{1, 1}, 1}, {{3, 3}, 1}, {{5, 5}, 1}},
          {{{1, 5}, 1}, {{3, 3}, 1}, {{5, 1}, 1}}}

enter image description here
Row[{
  Graphics[{
            Opacity[0.5],Red, 
            Disk @@@ lalist[[1]]}, 
            Frame -> True],
  Graphics[{
            Opacity[0.5],Blue, 
            Disk @@@ lalist[[2]]}, 
            Frame -> True]}
    ]

enter image description here
  • 我有没有可能绘制蓝调
    3D 中红色磁盘“后面”的磁盘
    阴谋 ?

  • 以下不是我需要的:

    enter image description here

    最佳答案

    像这样?

    Graphics3D[{{Texture[
     Graphics[{Opacity[0.5], Blue, Disk @@@ lalist[[2]]}, 
      Frame -> True]], 
     Polygon[{{-1, -1, -1}, {1, -1, -1}, {1, 1, -1}, {-1, 1, -1}}, 
     VertexTextureCoordinates \[Rule] {{0, 0}, {1, 0}, {1, 1}, {0, 
        1}}]}, {Texture[
     Graphics[{Opacity[0.5], Red, Disk @@@ lalist[[1]]}, 
      Frame -> True]], 
    Polygon[{{-1, -1, 1}, {1, -1, 1}, {1, 1, 1}, {-1, 1, 1}}, 
     VertexTextureCoordinates \[Rule] {{0, 0}, {1, 0}, {1, 1}, {0, 
        1}}]}}, Lighting \[Rule] "Neutral"]
    

    enter image description here

    很多不透明度为 0.2:
    tab = Table[{Opacity \[Rule] .2, 
    Texture[Graphics[{Opacity[0.5], Blue, Disk @@@ lalist[[2]]}, 
      Frame -> True]], 
    Polygon[{{-1, -1, z}, {1, -1, z}, {1, 1, z}, {-1, 1, z}}, 
     VertexTextureCoordinates \[Rule] {{0, 0}, {1, 0}, {1, 1}, {0, 
        1}}]}, {z, -2, 2, 1}];
    plt = Graphics3D[{tab}, Lighting \[Rule] "Neutral"]
    

    enter image description here

    并且400在速度方面似乎不是什么大问题(你可以很容易地修改上面的代码来查看它)。

    编辑:好的,只是为了愚蠢,试试这个
    Dynamic[Graphics3D[{{Texture[#], 
      Polygon[{{-1, -1, -1}, {1, -1, -1}, {1, 1, -1}, {-1, 1, -1}}, 
       VertexTextureCoordinates \[Rule] {{0, 0}, {1, 0}, {1, 1}, {0, 
          1}}]}, {Texture[Rotate[#, \[Pi]/2]], 
      Polygon[{{-1, -1, 1}, {1, -1, 1}, {1, 1, 1}, {-1, 1, 1}}, 
       VertexTextureCoordinates \[Rule] {{0, 0}, {1, 0}, {1, 1}, {0, 
          1}}]}}, Lighting \[Rule] "Neutral"] &@Binarize[CurrentImage[]]]
    

    这使

    enter image description here

    (或类似的东西),可旋转,实时更新等。

    关于graphics - 使用 Mathematica 中的图形以 3D 形式显示多个 2D 绘图?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6486907/

    相关文章:

    opencv - 使用 opencv 计算虚拟相机的单应性

    javascript - 如何解决这个循环并按顺序呈现锥体?

    r - 获取 R 中的第一个非零数字,类似于 Mathematica

    wolfram-mathematica - 如何用权重标记图形边缘

    wolfram-mathematica - Times 和 NonCommutativeMultiply,自动处理差值

    java - 有什么方法可以让我的 JFrame 居中吗?

    python - 如何在曲线上均匀地重新分布点

    java - 在Java中用 turtle 绘制偶数点的星星时出现问题

    delphi - 如何定位图像中的对齐标记

    python - 使用 pycollada 在 3d block 上制作纹理