POV-Ray : Newsgroups : povray.macintosh : Wavefront Import : Re: Wavefront Import Server Time
20 Apr 2024 08:05:59 EDT (-0400)
  Re: Wavefront Import  
From: William F Pokorny
Date: 28 Dec 2020 15:18:37
Message: <5fea3d9d$1@news.povray.org>
On 12/28/20 9:47 AM, William F Pokorny wrote:
> 
> (1) - Invalid triangles are simply ignored which could lead to confusing 
> messages on "junk" text. The invalid triangles should probably be 
> counted and reported once on exit - as a warning - if the count larger 
> than 0.
> 
> (1+) If there are no valid triangles at the time an unknown token is 
> seen, the token itself should be the error - not that there are no valid 
> triangles.
> 

FWIW. Updated my povr branch to always warn on degenerate triangles and 
degenerate triangles, or not, any invalid identifiers/tokens are always 
flagged as errors by name. Your code as posted now generates:

Parse Error:
Invalid identifier 'obj'
prior to valid triangle or smooth triangle.

Bill P.


Parse Warning:
4 degenerate triangle(s) dropped from mesh with
0 valid triangle(s).
File 'newDegenWarn_wIdentErr.pov' line 18:
Parse Error:
Invalid identifier 'obj'
prior to valid triangle or smooth triangle.


Post a reply to this message

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