POV-Ray : Newsgroups : povray.advanced-users : Re: Help: using function of SDL Server Time
24 Nov 2024 12:44:38 EST (-0500)
  Re: Help: using function of SDL (Message 1 to 2 of 2)  
From: Thorsten Froehlich
Subject: Re: Help: using function of SDL
Date: 1 Jan 2007 08:43:29
Message: <45991001$1@news.povray.org>
This is the wrong group for this question.  This question seems to fit into
the povray.advanced-users group rather well.  Cross-posting and follow-up
set to povray.advanced-users .

	Thorsten, POV-Team

wwyang wrote:
> > Le Forgeron <jgr### [at] freefr> wrote:
>> >> you cannot use macro (#if is macro) inside function the way you want
>> >> to do it (different namespace: x in function space is not the same
>> >> as the x in macro/SDL space). See 2.2.1.6.2 in
>> >>
>> >> http://www.povray.org/documentation/view/3.6.1/231/
>> >>
>> >> If you want to limit to x>0, use the contained_by { box {
>> >> <0,-1,-1>,<1,1,1> } in the isosurface object.
>> >>
>> >>
>> >> --
>> >> The superior man understands what is right;
>> >> the inferior man understands what will sell.
>> >> -- Confucius
> >
> >
> >
> > Forgeron,
> > Thanks for your advice. Now i got the difference of function space and SDL
> > space. But i still have problem in implementing function in SDL for my
> > isosurface.
> >
> > In my scene, the isosurface is defined by implicit polynomials in terms of
> > b-spline basis. And the function evaluation needs the branches that depend
> > on coordinates of point in 3D scene space, e.g. the parameters passed to
> > the function. I've read many examples for definition of isosurface
> > functions in SDL, found that they all only the combination of basic
> > operations(e.g. +,-,*,/,power etc) but without the logic operations(Aand,
> > Or..).
> >
> > So can i implement logic operations in function that will take affect in
> > rendering time but not parsing time? If can do it in function space, how
> > should i do?
> >
> >
> >


Post a reply to this message

From: Slime
Subject: Re: Help: using function of SDL
Date: 4 Jan 2007 03:22:06
Message: <459cb92e$1@news.povray.org>
> > > So can i implement logic operations in function that will take affect
in
> > > rendering time but not parsing time? If can do it in function space,
how
> > > should i do?

What you're looking for is the select() function. (Check the documentation
for details.)

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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