POV-Ray : Newsgroups : povray.beta-test : Question on isosurface polarity keyword behavior. : Re: Question on isosurface polarity keyword behavior. Server Time
25 Apr 2024 16:07:36 EDT (-0400)
  Re: Question on isosurface polarity keyword behavior.  
From: clipka
Date: 8 Jan 2017 15:06:39
Message: <58729bcf$1@news.povray.org>
Am 08.01.2017 um 19:25 schrieb William F Pokorny:
> I'm working up a potential pattern example for the distributed scenes
> collection and ran into a surprise where polarity is doing nothing and I
> expected it to. Perhaps I am confused as to intent?
> 
> There are two uses of it in the attached, working pattern.pov file. The
> first behaves as I expect, the second does nothing.
> 
> Is the second use supposed to work?

In the second case, you're not using the actual isosurface, just its
potential.

The "polarity" keyword does /not/ affect the underlying potential, and
hence it also does not affect the resulting potential pattern. It just
affects which portion of the isosurface is considered inside, and which
one is considered outside:

By default, the "inside" of an isosurface is the set of all points
(inside the contained_by shape) where the potential is _smaller_ than
the threshold.

The "inside" of an isosurface with a positive "polarity" setting, on the
other hand, is the set of all points (inside the contained_by shape)
where the potential is _larger_ than the threshold (making the behaviour
consistent with blobs).


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.