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

X-Received by 10.66.134.7 with SMTP id pg7mr27251668pab.30.1467596828275; Sun, 03 Jul 2016 18:47:08 -0700 (PDT)
X-Received by 10.36.110.134 with SMTP id w128mr220253itc.3.1467596828225; Sun, 03 Jul 2016 18:47:08 -0700 (PDT)
Path csiph.com!weretis.net!feeder6.news.weretis.net!news.glorb.com!g4no223115ith.0!news-out.google.com!o189ni1206ith.0!nntp.google.com!r1no10280848ige.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Sun, 3 Jul 2016 18:47:07 -0700 (PDT)
In-Reply-To <dtgakaF7thaU1@mid.dfncis.de>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2602:30a:c0ae:a550:71ab:a22a:3d56:6175; posting-account=oKPMfAoAAABg1pfbemLR-nuhqcf3qVFK
NNTP-Posting-Host 2602:30a:c0ae:a550:71ab:a22a:3d56:6175
References <baced62a-4792-4aa4-a004-25b172c98d41@googlegroups.com> <dtgakaF7thaU1@mid.dfncis.de>
User-Agent G2/1.0
MIME-Version 1.0
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
Injection-Date Mon, 04 Jul 2016 01:47:08 +0000
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.graphics.apps.gnuplot:3365

Show key headers only | 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