![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Warp" <war### [at] tag povray org> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Warp <war### [at] tag povray org> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Bob Hughes <per### [at] aol com?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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Nathan Kopp <Nat### [at] kopp com> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Fri, 12 May 2000 15:07:43 -0400, "Nathan Kopp" <Nat### [at] Kopp com>
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] tag povray org> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |