POV-Ray : Newsgroups : povray.binaries.scene-files : Triangles Server Time
1 Sep 2024 12:17:20 EDT (-0400)
  Triangles (Message 1 to 6 of 6)  
From: alphaQuad
Subject: Triangles
Date: 15 Oct 2007 02:25:01
Message: <web.47130576eafccc469cf7a09b0@news.povray.org>
Had to make sure it all worked.
Many changes to triangulation.inc
Probably close to a final version in this archive.

image in p.b.images


Post a reply to this message


Attachments:
Download 'pov_triangle.zip' (23 KB)

From: Leef me
Subject: Re: Triangles
Date: 16 Oct 2007 18:15:01
Message: <web.4715368c5f3e1700ed05561a0@news.povray.org>
"alphaQuad" <alp### [at] earthlinknet> wrote:
> Had to make sure it all worked.
> Many changes to triangulation.inc
> Probably close to a final version in this archive.
>
> image in p.b.images


So, what am I doing wrong?


  Input file: C:pov_triangletriangle.pov (compatible to version 3.61)

Line: 16

#declare p4 = p2+vnormalize(p1-p2)* asa_sin(radang3
Parse Error: Expected 'numeric expression', undeclared identifier 'radang3'
found instead


There are probably 6 lines missing this same identifier,
 the actual statement in the files reads like this:


#declare p4 = p2+vnormalize(p1-p2)* asa_sin(radang3(p1,p2,ic),
              vlength(ic-p2),(pi/2)-radang3(p1,p2,ic));

Leef_me


Post a reply to this message

From: Alain
Subject: Re: Triangles
Date: 16 Oct 2007 22:38:45
Message: <471575b5$1@news.povray.org>
Leef_me nous apporta ses lumieres en ce 2007/10/16 18:10:
> "alphaQuad" <alp### [at] earthlinknet> wrote:
>> Had to make sure it all worked.
>> Many changes to triangulation.inc
>> Probably close to a final version in this archive.
>>
>> image in p.b.images
> 
> 
> So, what am I doing wrong?
> 
> 
>   Input file: C:pov_triangletriangle.pov (compatible to version 3.61)
> 
> Line: 16
> 
> #declare p4 = p2+vnormalize(p1-p2)* asa_sin(radang3
> Parse Error: Expected 'numeric expression', undeclared identifier 'radang3'
> found instead
> 
> 
> There are probably 6 lines missing this same identifier,
>  the actual statement in the files reads like this:
> 
> 
> #declare p4 = p2+vnormalize(p1-p2)* asa_sin(radang3(p1,p2,ic),
>               vlength(ic-p2),(pi/2)-radang3(p1,p2,ic));
> 
> Leef_me
> 
radang3 is not deffined.
radang3 is not one of the predeffined functions, so it MUST be deffined in the 
POV file or an include.
Is it deffined in an include file? Is that include actualy included?
Look before line 16. Is there ANY #function radang3 = <something>?

-- 
Alain
-------------------------------------------------
You know you've been raytracing too long when you look at a matrix transform and 
know instantly what it does.
John VanSickle


Post a reply to this message

From: alphaQuad
Subject: Re: Triangles
Date: 16 Oct 2007 23:45:00
Message: <web.471584035f3e170076b3e6350@news.povray.org>
"Leef_me" <nomail@nomail> wrote:
> "alphaQuad" <alp### [at] earthlinknet> wrote:
> > Had to make sure it all worked.
> > Many changes to triangulation.inc
> > Probably close to a final version in this archive.
> >
> > image in p.b.images
>
>
> So, what am I doing wrong?


radang3(A,B,C) is only in the the most recent archive.
to date, this is the most recent.
the latest include file IS in the archive.


so dont use an older file version.
pov will look for this include in the same directory as the pov file.
well, it does here at least.

If you are really having folder problems you can always paste functions to
file.

Cant think of anything else that will help, but you probably figured it out
by now. Alain seems good at question catching devotion. Thanks Alain


Post a reply to this message

From: alphaQuad
Subject: Re: Triangles
Date: 17 Oct 2007 00:05:01
Message: <web.471589415f3e170076b3e6350@news.povray.org>
"Leef_me" <nomail@nomail> wrote:
> "alphaQuad" <alp### [at] earthlinknet> wrote:
> > Had to make sure it all worked.
> > Many changes to triangulation.inc
> > Probably close to a final version in this archive.
> >
> > image in p.b.images
>
>
> So, what am I doing wrong?
hmmmm

I messed up somehow, it seems and the function was not included

#macro radang3(A,B,C)
   #declare result =
   acos(_clamp(vdot(vnormalize(A-B),vnormalize(C-B)), -1.0, 1.0));
   result
#end

here is the new archive 23,216 bytes

perfection is only a concept, not a reality


Post a reply to this message


Attachments:
Download 'pov_triangle.zip' (23 KB)

From: Leef me
Subject: Re: Triangles
Date: 17 Oct 2007 01:10:01
Message: <web.471598395f3e1700892adb1d0@news.povray.org>
"alphaQuad" <alp### [at] earthlinknet> wrote:
> "Leef_me" <nomail@nomail> wrote:
> > "alphaQuad" <alp### [at] earthlinknet> wrote:
> > > Had to make sure it all worked.
> > > Many changes to triangulation.inc
> > > Probably close to a final version in this archive.
> > >
> > > image in p.b.images
> >
> >
> > So, what am I doing wrong?
> hmmmm
>
> I messed up somehow, it seems and the function was not included
>
> #macro radang3(A,B,C)
>    #declare result =
>    acos(_clamp(vdot(vnormalize(A-B),vnormalize(C-B)), -1.0, 1.0));
>    result
> #end
>
> here is the new archive 23,216 bytes
>
> perfection is only a concept, not a reality


You got it fixed now.

Leef_me


Post a reply to this message

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