POV-Ray : Newsgroups : povray.advanced-users : How to calculate object size : Re: How to calculate object size Server Time
5 Jul 2024 16:11:24 EDT (-0400)
  Re: How to calculate object size  
From: Alain
Date: 3 Jan 2008 10:34:12
Message: <477d0074@news.povray.org>
badjanah nous apporta ses lumieres en ce 2008/01/03 08:12:
> I need to insert into povray scene some exported 3ds objects. Exported
> objects are complex, have many polygons and vertex. How automatically
> calculate object bounding box for scaling to needed size?
> 
> 
> 
Get PoseRay (Free).
Import the 3DS object into PoseRay.
Here, you can rotate, translate and rotate the object if you wish.
Export the object to POV-Ray. This will create a file (.inc) that POV-Ray can 
use. That file will contain a mesh version of your object. You may also have 
some other files containing the materials to be used with the obect.

#include the file(s) from PoseRay into your scene.

Once the object is available to POV-Ray, you can use min_extent() and 
max_extent() to retreive the actual bounding box of that object and use that to 
scale it.
As the imported object is a mesh, you can use 1000's of it without problem.

-- 
Alain
-------------------------------------------------
Advertisements contain the only truths to be relied on in a newspaper.
Thomas Jefferson


Post a reply to this message

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