POV-Ray : Newsgroups : povray.advanced-users : Superellipsoids not very efficient? : Re: Superellipsoids not very efficient? Server Time
28 Jul 2024 16:25:05 EDT (-0400)
  Re: Superellipsoids not very efficient?  
From: Slime
Date: 8 Nov 2004 09:15:51
Message: <418f7f97$1@news.povray.org>
> Slime - nothing directly, but I am cutting a hole in the middle of the
whole
> group of them.

That might be the cause of the slowdown. I mean, superellipsoids are slow,
but not *unbearably* slow in my experience.

Try this: rather than doing this:

difference {
union {
// superellipsoids
// other stuff
}
union {
// big hole cutout
}
}

do this:

#declare bighole = union {
// big hole cutout
}
union {
difference {
union {
// other stuff
}
object {bighole}
}
difference {
union {
// superellipsoid 1
}
object {bighole}
}
difference {
union {
// superellipsoid 2
}
object {bighole}
}
...
}

I wouldn't be surprised if that speeds things up.

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


Post a reply to this message

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