[Radiance-general] DF for a polygon

Andrew McNeil andrew.mcneil at arup.com
Tue May 26 08:30:33 PDT 2009


Yes, your errors are most likely resulting from deleting some of rtrace
points.  Rtrace is expecting 4351*3000 points and is getting fewer, hence
the unexpected end of file error.

>From the rtrace manual page: ³If the direction vector is (0,0,0), a bogus
record is printed...²   Instead of deleting you could change the vector to
Œ0 0 0¹ and then the area outside of your polygon would be comprised of
bogus records (zeros).   This method might not work if you are expecting
legitimate zeros in your output.



On 5/26/09 5:09 AM, "Per Haugaard" <perhaugaard at yahoo.dk> wrote:

> Dear users,
> 
> I am calculating DF for a polygon. My approach for this is to use cnt, rcalc
> and rtrace as described below.
> 
> cnt 3000 4351 | rcalc -e 'x=157-$1*0.01; y=168.41-$2*0.01; z=0.85; $1=x; $2=y;
> $3=z; $4=0; $5=0; $6=1' > grids/grid_level_0.xyz
> 
> I then deleted the lines outside my polygon and initiated rtrace.
> 
> cat grids/grid_level_0.xyz | rtrace -I -ab 4 -aa 0.05 -ar 128 -ad 512 -as 256
> -x 4351 -y 3000 -af ambfiles/df.amb -fac octrees/LSE_DF.oct >
> images/grid2illum_level_0.pic
> 
> which results the following error:
> 
> rtrace: fatal - unexpected EOF on input
> pfilt: truncated input (y=754)
> images/grid2illum_level_0_resized.pic: read error
> <stdin>: read error (y==139)
> 
> Two of the errors occur when I start to work with the grid2illum_level_0.pic
> image. If I do not specify the picture size in the rtrace command I get the
> following error:
> 
> pfilt: bad picture size
> images/grid2illum_level_0_resized.pic: bad picture size
> images/grid2illum_level_0_resized_df.pic: bad picture size
> 
> Does this error occur because i delete points in the plane and how do I get
> around this this?
> 
> 
> Best regard
> 
> Per Haugaard,
> 
>  
> 
> 
>  Trænger du til at se det store billede? Kelkoo giver dig gode tilbud på LCD
> TV <http://dk.yahoo.com/r/pat/lcd> !
> 
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general

____________________________________________________________
Electronic mail messages entering and leaving Arup  business
systems are scanned for acceptability of content and viruses
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20090526/e22ee9b0/attachment.htm


More information about the Radiance-general mailing list