8

我有由ContourPlot3D产生的3D表面的Mesh线呈现的问题在数学7.0.1重叠网格线在ContourPlot3D

p=ContourPlot3D[x^4+y^4+z^4-(x^2+y^2+z^2)^2+3(x^2+y^2+z^2)==3, 
     {x, -2,2}, {y, -2, 2}, {z,-2,2}, 
    BoundaryStyle->Directive[Black,Thickness[.003]], 
    ContourStyle->Directive[Orange,Opacity[0.5],Specularity[White,300]], 
    PlotPoints->90,Ticks->None, 
    MeshStyle->Directive[GrayLevel[.7],Thickness[.001]], 
    Lighting->{{"Directional",RGBColor[1,1,1], 
          {[email protected]{1,0,1},[email protected]{0,0,0}}}}]; 
p=Graphics[Inset[p,{0,0},Center,{1,1}], 
         PlotRange->{{-.5,.5},{-.5,.5}},Frame->True] 

screenshot1

仔细看它们:

Show[p, PlotRange -> {{-.16, -.05}, {0, .1}}] 

screenshot2

您会发现灰色线条Mesh在许多地方都与表面形成三角形重叠,甚至看起来虚线。有没有办法避免这种情况?

+0

感谢您的提问和回答这一点。 +2 –

回答

5

约翰·富尔茨has answered我在官方新闻组的问题。为数学 7个用户(以及可能是谁具有不为DepthPeeling渲染方法支持的图形卡的版本8的用户)的解决方案是使用的MeshStyle选项一个未记录的形式为:

MeshStyle -> {{GrayLevel[.7], Tube[0.01]}} 

对于具有Mesh线显示为扁平物体可以使用Glow

MeshStyle -> {{Glow[GrayLevel[.7]], Black, Tube[0.005]}} 

现在啮合是很好的呈现:

p1 = ContourPlot3D[ 
    x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 
    3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, 
    BoundaryStyle -> Directive[Black, Thickness[.003]], 
    ContourStyle -> 
    Directive[Orange, Opacity[0.5], Specularity[White, 300]], 
    Ticks -> None, PlotPoints -> 40, 
    MeshStyle -> {{Glow[GrayLevel[.7]], Black, Tube[0.005]}}, 
    Lighting -> {{"Directional", 
     RGBColor[1, 1, 1], {[email protected]{1, 0, 1}, 
     [email protected]{0, 0, 0}}}}]; 
p = Graphics[Inset[p1, {0, 0}, Center, {1, 1}], 
    PlotRange -> {{-.5, .5}, {-.5, .5}}, Frame -> True, 
    GridLines -> Automatic] 

screenshot

Show[p, PlotRange -> {{-.16, -.05}, {0, .1}}] 

screenshot

4

对于它的价值,我没有看到在Mac OS 10.7.1中M8.0.1这个问题:

enter image description here

+0

很高兴听到。谢谢你的截图。 –

+0

我的荣幸。事实上,如果您需要M8的一个版本,我很乐意将它发送给您。 – Cassini

+0

这个图只是一个例子。我想我会在合理的时间内获得M8出口我的身材。但是,谢谢你的建议。 –