POV-Ray : Newsgroups : povray.general : isosurface woes Server Time
18 Nov 2024 09:15:17 EST (-0500)
  isosurface woes (Message 1 to 3 of 3)  
From: James Taylor
Subject: isosurface woes
Date: 8 Sep 2002 17:45:25
Message: <3d7bc4f5@news.povray.org>
Hi all

I've just started playing around with isosurfaces, only without much
success.
Here's a snippet of my code:

#local round = 0.2;

isosurface {
    function{f_superellipsoid(x,y,z, round, round)}
    contained_by { box { -1, 1 } }
    pigment{White}
}

I would expect this to produce a round box, but all I see is the container
box with some artefacts.
My aim to produce a round box as would appear if using the superellipsiod
primitive - I'm using an isosurface though because I want to later deform it
with a noise function.

I'm guessing there's a simple solution I've overlooked in the manual.

thanks in advance
jim


Post a reply to this message

From: Christopher James Huff
Subject: Re: isosurface woes
Date: 8 Sep 2002 18:08:56
Message: <chrishuff-E756DB.18082308092002@netplex.aussie.org>
In article <3d7bc4f5@news.povray.org>,
 "James Taylor" <jim### [at] blueyondercouk> wrote:

> I would expect this to produce a round box, but all I see is the container
> box with some artefacts.

I can think of two possibilities:
1: the shape is simply bigger than the container. Try making the 
container bigger.
2: the superellipsoid is inside-out for some reason...use "open" or 
modify the function.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: James Taylor
Subject: Re: isosurface woes
Date: 8 Sep 2002 18:14:00
Message: <3d7bcba8@news.povray.org>
Thanks - I think it was inside out - I changed the function to

    -f_superellipsoid(x,y,z, round, round)
    ^
    |----mulitiplied the thing by -1

and I get the 'proper' result

jim


Post a reply to this message

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