POV-Ray : Newsgroups : povray.unofficial.patches : Question about mesh2 Server Time
1 Nov 2024 21:20:25 EDT (-0400)
  Question about mesh2 (Message 1 to 6 of 6)  
From: Warp
Subject: Question about mesh2
Date: 12 May 2000 06:56:59
Message: <391be37b@news.povray.org>
What happens if the 'number_of_faces' value in the uv_indices block is
smaller than the one in the face_indices block? And if it's bigger?

  (I need to know this for my triangle mesh compressor)

  If you #read something into an identifier, is there any way of knowing
if it's a float or a string?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Bob Hughes
Subject: Re: Question about mesh2
Date: 12 May 2000 10:46:26
Message: <391c1942@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message news:391be37b@news.povray.org...
|   What happens if the 'number_of_faces' value in the uv_indices block is
| smaller than the one in the face_indices block? And if it's bigger?
|
|   (I need to know this for my triangle mesh compressor)

No idea.

|   If you #read something into an identifier, is there any way of knowing
| if it's a float or a string?

Interesting question.  Only thing I'd say is if it were tested by trying to make
it something else, like #declare TestErrorFS=val(WhatIsIt) and getting an error
when it's not a string.
Likewise #declare TestErrorSF=str(0,1,WhatIsIt) when it's not a float.
No good of course to just produce an error if you can't continue to parse.
There's an idea.  Error trapping kind of thing possible or could it be added?

Bob


Post a reply to this message

From: Nathan Kopp
Subject: Re: Question about mesh2
Date: 12 May 2000 15:09:54
Message: <391c5702@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote...
>   What happens if the 'number_of_faces' value in the uv_indices block is
> smaller than the one in the face_indices block? And if it's bigger?

If they are unequal, you will receive the error message "Number of uv
indices must equal number of faces."  Do you thing the functionality should
be different from this (similar to normal_indices, maybe)?

-Nathan


Post a reply to this message

From: Warp
Subject: Re: Question about mesh2
Date: 12 May 2000 17:18:24
Message: <391c7520@news.povray.org>
Bob Hughes <per### [at] aolcom?subject=pov-news:> wrote:
: Likewise #declare TestErrorSF=str(0,1,WhatIsIt) when it's not a float.
: No good of course to just produce an error if you can't continue to parse.
: There's an idea.  Error trapping kind of thing possible or could it be added?

  I think that a type testing would be handier in this case. Something
like:

isfloat(Identifier): returns true if 'Identifier' is a float, else false.
isstring(Identifier): returns true if 'Identifier' is a string, else false.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Warp
Subject: Re: Question about mesh2
Date: 12 May 2000 17:19:47
Message: <391c7572@news.povray.org>
Nathan Kopp <Nat### [at] koppcom> wrote:
: If they are unequal, you will receive the error message "Number of uv
: indices must equal number of faces."  Do you thing the functionality should
: be different from this (similar to normal_indices, maybe)?

  No; actually it makes my life a lot easier if the number is equal in
both blocks.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Thomas Baier
Subject: Re: Question about mesh2
Date: 13 May 2000 03:44:20
Message: <nm1qhskj23er3j2823hpfrakaa8uvoaeal@4ax.com>
On Fri, 12 May 2000 15:07:43 -0400, "Nathan Kopp" <Nat### [at] Koppcom>
wrote:

Hi,

all 3 numbers for vertex faces, normal faces and uv faces must be
equal. Anything other makes no sense.  3DWin for example checks this
condition and asserts in case of difference.

Thomas

>
>Warp <war### [at] tagpovrayorg> wrote...
>>   What happens if the 'number_of_faces' value in the uv_indices block is
>> smaller than the one in the face_indices block? And if it's bigger?
>
>If they are unequal, you will receive the error message "Number of uv
>indices must equal number of faces."  Do you thing the functionality should
>be different from this (similar to normal_indices, maybe)?
>
>-Nathan
>


Post a reply to this message

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