POV-Ray : Newsgroups : povray.bugreports : inside() results in: Parse Error: Expected 'operand', object identifier, found instead : Re: inside() results in: Parse Error: Expected 'operand', object identifier= Server Time
1 Jun 2025 13:39:54 EDT (-0400)
  Re: inside() results in: Parse Error: Expected 'operand', object identifier=  
From: Bald Eagle
Date: 28 May 2025 10:25:00
Message: <web.68371ba64583c609cefaa2a925979125@news.povray.org>
Lars Rohwedder <rok### [at] gmxde> wrote:
> I tried some magic with inside() and isosurface, but povray does not
> like even the simplest terms involving the inside() function,


inside () never got implemented in the function virtual machine, so:

Use an object pigment pattern in your function instead:

function {
     pigment{
          object{
               MyObject
               rgb 0 // outside
               rgb 1 // inside
          }
     }
}

Then the result of your "inside" test will be the rgb value.

- BE


Post a reply to this message

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