POV-Ray : Newsgroups : povray.newusers : BEND.INC - error in atan function Server Time
30 Dec 2024 15:46:22 EST (-0500)
  BEND.INC - error in atan function (Message 1 to 3 of 3)  
From: Reuben Pearse
Subject: BEND.INC - error in atan function
Date: 17 Aug 2001 06:22:50
Message: <3b7cf07a@news.povray.org>
Hi all,

Downloaded Chris Colefax's BEND.INC, but having problems running the example
file. It comes up with the error:
error: Domain error in atan2
and it highlights the line:

#declare _BN_roty = degrees(atan2(_BN_axisvec.x, _BN_axisvec.z))

Is BEND.INC compatible with POV 3.1g? Have I got an old version of this
include file?

Thanks

Reuben
doo### [at] breathemailnet


Post a reply to this message

From: Warp
Subject: Re: BEND.INC - error in atan function
Date: 17 Aug 2001 06:24:07
Message: <3b7cf0c6@news.povray.org>
It sounds like you have given the include wrong parameters (ie. you are
trying to bend the object in an impossible way).

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Chris Colefax
Subject: Re: BEND.INC - error in atan function
Date: 17 Aug 2001 06:31:10
Message: <3b7cf26e@news.povray.org>
"Reuben Pearse" <reu### [at] presence-systemscom> wrote:
> Downloaded Chris Colefax's BEND.INC, but having problems running the
example
> file. It comes up with the error:
> error: Domain error in atan2
> and it highlights the line:
>
> #declare _BN_roty = degrees(atan2(_BN_axisvec.x, _BN_axisvec.z))
>
> Is BEND.INC compatible with POV 3.1g? Have I got an old version of this
> include file?

It sounds like you might have an older copy of the file - you can download
the latest version of all the include files directly from my page:

   http://www.geocities.com/ccolefax


Post a reply to this message

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