POV-Ray : Newsgroups : povray.newusers : Isosurface object calling an external function/program??? Server Time
30 Jul 2024 00:19:59 EDT (-0400)
  Isosurface object calling an external function/program??? (Message 1 to 3 of 3)  
From:
Subject: Isosurface object calling an external function/program???
Date: 2 Nov 2004 10:25:01
Message: <web.4187a58d139a9eb41ad39b350@news.povray.org>
Hi,

I would like to use POV-Ray for scientific visualisation. The isosurface
capability sounds very interesting for my problem. In my case however, the
function I need to evaluate is a bit complicated (and involves sums of
elements defined outside POV-Ray). Is it possible to call a function
defined outside POV-Ray (in a shared lib) inside the isosurface object???
Could anyone give me an exemple of how to do this?

Thanks,



Post a reply to this message

From: Mike Raiford
Subject: Re: Isosurface object calling an external function/program???
Date: 2 Nov 2004 10:51:19
Message: <4187acf7$1@news.povray.org>


> Hi,
> 
> I would like to use POV-Ray for scientific visualisation. The isosurface
> capability sounds very interesting for my problem. In my case however, the
> function I need to evaluate is a bit complicated (and involves sums of
> elements defined outside POV-Ray). Is it possible to call a function
> defined outside POV-Ray (in a shared lib) inside the isosurface object???
> Could anyone give me an exemple of how to do this?
> 
> Thanks,
> 


Not without patching POVRay... Unless the output of said library is 
"fixed" then you could technically write the data out to a flat file, 
and load it into POVRay with the file IO directives.

-- 
~Mike


Post a reply to this message

From: Christoph Hormann
Subject: Re: Isosurface object calling an external function/program???
Date: 2 Nov 2004 11:10:02
Message: <cm8b9n$72t$1@chho.imagico.de>

> Hi,
> 
> I would like to use POV-Ray for scientific visualisation. The isosurfac
e
> capability sounds very interesting for my problem. In my case however, 
the
> function I need to evaluate is a bit complicated (and involves sums of
> elements defined outside POV-Ray). Is it possible to call a function
> defined outside POV-Ray (in a shared lib) inside the isosurface object?
??
> Could anyone give me an exemple of how to do this?

You would need to modify POV-Ray for this and it would break portability 

of the program.  If the function is too complicated to be implemented in 

SDL it is unlikely that it would be efficient to render an isosurface 
directly from it (this uses a *lot* of function evaluations).  Better 
use a df3 file generated with a separate program.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

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