[Radiance-general] Re: obj2rad: "bad face" and "bad triangle"

Randolph M. Fritz RFritz at lbl.gov
Tue Sep 28 15:09:32 PDT 2010


Thanks very very much for the prompt fix, Greg.  This also fixed my 
second bug, which involved a surface which had no assigned material 
type and was therefore treated like "void", triggering the bug.

Randolph

On 2010-09-28 14:30:12 -0700, Greg Ward said:

> Thanks, Randolph.  This was a bug.  Obj2rad is supposed to quietly 
> elide surfaces that map to the "void" type, but this has been broken, 
> perhaps from the beginning.  I just checked a fixed version into CVS.
> 
> -Greg
> 
>> From: "Randolph M. Fritz" <RFritz at lbl.gov>
>> Date: September 28, 2010 12:46:39 PM PDT
>> 
>> Thanks, folks.  I'm beginning to think I misunderstand the use of 
>> "void" in obj2rad.
>> 
>> The following OBJ file:
>>> g OFFICE_DOOR_JAMB_A
>>> o object_23
>>> v 2.500880479812622 10.49974822998047 192
>>> v 3.500880241394043 10.49974822998047 192
>>> v 2.500880479812622 10.49974822998047 231.9999847412109
>>> vt 0.200000062584877 0
>>> vt 0.212481752038002 0
>>> vt 0.200000062584877 0.499267578125
>>> vn 0 -1 0
>>> vn 0 -1 0
>>> vn 0 -1 0
>>> f 1/1/1 2/2/2 3/3/3
>> 
>> And the following mapping file:
>>> void (Group "OFFICE_DOOR_JAMB_A");
>> 
>> produces a "bad triangle" error.
>> 
>> If I change "void" to "wood," obj2rad succeeds.
>> 
>> Say, what?
>> 
>> At least, I think I have workarounds.
>> --
>> Randolph


-- 
Randolph





More information about the Radiance-general mailing list