POV-Ray : Newsgroups : povray.macintosh : Wavefront Import : Re: Wavefront Import Server Time
8 Nov 2024 23:05:45 EST (-0500)
  Re: Wavefront Import  
From: William F Pokorny
Date: 28 Dec 2020 09:47:39
Message: <5fe9f00b$1@news.povray.org>
On 12/27/20 10:22 AM, kurtz le pirate wrote:
> 
> Hello,
> 
> Ref : <http://wiki.povray.org/content/Reference_Talk:Mesh>
> 
> "New to version 3.7.1 support has been added to allow importing 
> Wavefront (OBJ) files." With the given example
> 
...
> and with the latest version of MacPOV, this results in the error :
> "Parse Error: No triangles in triangle mesh".
> 
...
> 
> So, implemented or not ?
> 
For any particular Mac version I cannot be certain of the state.

During 3.71 development Christoph implemented initial OBJ import support 
and then disabled it due issues requiring code re-work.

I occasionally run across disabled remnants of the attempt in the code 
base for v3.8 - which I hope to remove at some point from my povr branch.

The parse message you get, I get, with v3.7 and v3.8 master and it comes 
from the mesh1 parsing code. The parsing done is simple and on the first 
"token" not understood it exits the mesh1 parsing; Checking for a 
triangle count of at least one before returning(1). It must find at 
least one valid 'triangle' or 'smooth_triangle' internal to the first 
block-internal token(1).

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

Bill P.


Post a reply to this message

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