Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3365

Re: Strange Mobius strip in rendering a cylinder with pm3d

Newsgroups comp.graphics.apps.gnuplot
Date 2016-07-03 18:47 -0700
References <baced62a-4792-4aa4-a004-25b172c98d41@googlegroups.com> <dtgakaF7thaU1@mid.dfncis.de>
Message-ID <c9e15b73-05a0-43df-b740-74c7370e9262@googlegroups.com> (permalink)
Subject Re: Strange Mobius strip in rendering a cylinder with pm3d
From musiphil@bawi.org

Show all headers | View raw


On Tuesday, June 28, 2016 at 3:04:59 PM UTC-7, Hans-Bernhard Bröker wrote:
> 
> Just FTR, there's not really a need to use a datafile to get that effect:
> 
> 	set parametric
> 	splot [h=0:1][phi=-pi:pi] cos(phi),sin(phi),h w pm3d

Yeah. My use case involves a datafile, so I wanted to reproduce the behavior in a situation as similar as possible. It's useful to know the same behavior is observed wth function plots.

> And the root cause is quite simple: pm3d doesn't actually respect the 
> screen z coordinate (i.e. front-to-back) by default.  It draws the 
> patches of colour in the same order they have in your input.  And yes, 
> that drawing order is quite wrong in a large fraction of possible 
> orientations of this particular surface.
> 
> The solution is to read "help pm3d" and find out about "depthorder".

Yes, "set pm3d depthorder" was the solution indeed. (I wonder why that's not the default, but others may have different situations.) Thanks a lot!

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

Strange Mobius strip in rendering a cylinder with pm3d musiphil@bawi.org - 2016-06-27 21:43 -0700
  Re: Strange Mobius strip in rendering a cylinder with pm3d Michael Okuntsov <okuntsov.mikhail@yandex.ru> - 2016-06-28 16:20 +0700
    Re: Strange Mobius strip in rendering a cylinder with pm3d musiphil@bawi.org - 2016-06-28 09:46 -0700
    Re: Strange Mobius strip in rendering a cylinder with pm3d musiphil@bawi.org - 2016-06-28 10:27 -0700
  Re: Strange Mobius strip in rendering a cylinder with pm3d Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2016-06-29 00:04 +0200
    Re: Strange Mobius strip in rendering a cylinder with pm3d musiphil@bawi.org - 2016-07-03 18:47 -0700

csiph-web