|  |  | 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
 |  |