POV-Ray : Newsgroups : povray.general : bad triangles???? Server Time
5 Nov 2024 09:23:32 EST (-0500)
  bad triangles???? (Message 1 to 3 of 3)  
From: Alan Walkington
Subject: bad triangles????
Date: 29 Apr 2003 00:56:38
Message: <3eae0606$1@news.povray.org>
Folks:
If this turns out to be a multi-post, or multiple posts, I apologize.  OE
crashed the first time through.

I am converting some dxf files to a povray triangle format.  In doing so, I
have found some triangles which won't parse:

This one works.
triangle{
    <-0.9 0.0 0.1>,
    <0.0 0.1 -0.8>,
    <0.1 -0.8 0.3>
}

This one doesn't.
triangle{
    <-0.9 0.0 0.1>,
    <0.0 0.1 -0.8>,
    <0.1 -0.8 -0.3>
}

The only difference is the sign of z in the last vertex. The actual value
doesn't seem to matter.  It parses if the sign is positive, and chokes if
the sign is negative  It tells me "expected a numeric value, found a >
instead".

Shouldn't any three discrete points be a valid triangle? Any clues to what
is wrong (and how to fix it)  would be appreciated.

TIA,
Alan Walkington


Post a reply to this message

From: Kevin Loney
Subject: Re: bad triangles????
Date: 29 Apr 2003 01:22:01
Message: <3eae0bf9$1@news.povray.org>
try seperating the values with commas

in the first example pov is probably trying to parse it as <0.0, 0.1-0.8,
missing value>

--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg"
,r,1))-97;disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4
pigment{rgb 10}}_(r+1)#end#end _(1)//KL


Post a reply to this message

From: Alan Walkington
Subject: Re: bad triangles????
Date: 29 Apr 2003 04:59:00
Message: <3eae3ed4@news.povray.org>
Yup .. you got it.
Thanks
Alan
"Kevin Loney" <klo### [at] pt2mcom> wrote in message
news:3eae0bf9$1@news.povray.org...
> try seperating the values with commas
>
> in the first example pov is probably trying to parse it as <0.0, 0.1-0.8,
> missing value>
>
> --
> Kevin
> http://www.geocities.com/qsquared_1999/
> #macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg"
> ,r,1))-97;disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4
> pigment{rgb 10}}_(r+1)#end#end _(1)//KL
>
>


Post a reply to this message

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