[Radiance-general] Re: spatial scale in .obj file
Greg Ward
gregoryjward at gmail.com
Sat Dec 5 09:06:14 PST 2009
Hi Bei,
The command:
% obj2rad test.obj | getbbox
returns:
xmin xmax ymin ymax zmin zmax
-1.58231 1.51769 18.3588 21.4588 0.949999 4.05
From this, you can deduce that the sphere has a radius of 3.1 and is
centered at the average of the above coordinates, or (-.0323, 19.9,
2.5). You can also run objview on the output of obj2rad (after adding
a material) and look at it.
In general, we discourage people from posting attachments to the
mailing list, but this one was pretty small so hopefully it won't
cause any trouble.
Cheers,
-Greg
> From: bei.xiao at gmail.com
> Date: December 4, 2009 6:31:34 PM PST
>
> Hi,
> Does anyone know how to recover the spatial scale in an .obj file?
> For example, I have an .obj file of a sphere, without any more
> information, can I recover its radius in cm? Also, is the number in
> .obj or .rad file specified in cm? Attached please find the .obj file
> of the sphere.
>
> Thank you very much.
>
> Bei
>
> --
> Daily quote:
>
> "Real generosity toward the future lies in giving all to the
> present. "
>
> -Albert Camus
>
> Bei Xiao, PhD
> Postdoctoral Scientist
> The Smith-Kettlewell Eye Institute
> 2318 Fillmore Street
> San Francisco, CA 94115
> (415) 3452149
> flickr:www.flickr.com/photos/slowtempo
More information about the Radiance-general
mailing list