spatial scale in .obj file

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

test.obj (49.3 KB)

···

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

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: [email protected]
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

thank you so much! Sorry about the attachment.

Bei

···

On Sat, Dec 5, 2009 at 9:06 AM, Greg Ward <[email protected]> wrote:

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: [email protected]
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

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

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

Hi Greg,
  Just to confirm, is the unit of xmin in cm?

Thanks.

Bei

···

On Sat, Dec 5, 2009 at 9:06 AM, Greg Ward <[email protected]> wrote:

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: [email protected]
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

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

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

Hi Bei,

Radiance doesn't have any notion of length units, so they are whatever was specified when creating them, or whatever units you want them to be.

-Greg

···

From: [email protected]
Date: December 5, 2009 1:20:14 PM PST

Hi Greg,
Just to confirm, is the unit of xmin in cm?

Thanks.

Bei

On Sat, Dec 5, 2009 at 9:06 AM, Greg Ward <[email protected]> > wrote:

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