POV-Ray : Newsgroups : povray.binaries.images : Megpov: how to do a superelipse? Do we need x^p=sign(x)*|x|^p? : Re: Megpov: how to do a superelipse? Do we need x^p=sign(x)*|x|^p? Server Time
19 Aug 2024 12:21:50 EDT (-0400)
  Re: Megpov: how to do a superelipse? Do we need x^p=sign(x)*|x|^p?  
From: Greg M  Johnson
Date: 5 Jan 2001 08:32:08
Message: <3A55CB79.96817286@my-dejanews.com>
Christoph Hormann wrote:

> Seems Tor is right, since i guess the C function pow(x,y) computes the
> same (maybe apart from the optimization done here) this again answers the
> questions about where it is defined.

Yall are getting almost over my head.

I'd once again assert that in parametrics Chris Huff's statement is NOT true
for parametrics:
 > It is defined as "x raised to the power of n", and works fine with
 > negative x and fractional values of n.

albeit it appears to work fine in isosurfaces.

OR perhaps for isosurfaces:   x^n=abs(x)^n* sign(x); whereas parametrics have
something else.

Would parametrics and isosurfaces use different math code for exponents?

Hope I'm not being too much of a pain. But I would suggest "something is
wrong" if we get an image like that in the top of this thread.


Post a reply to this message

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