|
From: Ethan M. <merritt@u.washington.edu> - 2007-12-17 19:24:16
|
On Monday 17 December 2007 11:03, Ethan Merritt wrote:
> On Monday 17 December 2007 05:56, Petr Mikulik wrote:
> > I wonder that for "set hidden3d", the order of drawn surfaces vs lines is
> > the same and not opposite for:
> > splot ... with pm3d, ... with line
> > splot ... with line, ... with pm3d
>
> If you want to provide an option for the hidden3d plot elements to
> be drawn last, rather than first, one way to do this would be to add
> {front|back} as an option to "set hidden3d". What do you think?
It turns out quite nicely if the call to plot3d_hidden() is moved after
the normal loop over plot elements. It allows you to add a dummy
(invisible) hidden3d surface that is coincident with the pm3d surface:
set hidden3d
splot foo with pm3d, foo with lines lt -3, otherstuff with lines
The net result is a plot in which the lines are correctly occluded
by the pm3d surface, and vice versa.
--
Ethan A Merritt
|