POV-Ray : Newsgroups : povray.general : limited exclusion/inclusion object placment..needs improvement : Re: limited exclusion/inclusion object placment..needs improvement Server Time
30 Jul 2024 12:33:10 EDT (-0400)
  Re: limited exclusion/inclusion object placment..needs improvement  
From: Alain
Date: 13 Feb 2009 14:30:20
Message: <4995ca4c$1@news.povray.org>
[GDS|Entropy] nous illumina en ce 2009-02-13 12:28 -->
> Hmm...I tried the inside statement, but it gave unexpected results and 
> rendered slowly when used with semi-complicated objects.
> 
> Do min_extent and max_extent produce a cube/bounding box size, or are they 
> more form fitting?
> 
> ian
> 
Those return the corners of a box.
If your shape is somewhat complicated:
To place outside the shape, you should first check against that box. This is a 
very simple and quick insideness check against a simple box. Then, if you are 
inside the box, do the slower tests against the actual shape.
If you want to place the objects inside the shape, only shoot inside that box to 
minimize the missed shots.

A thing that you should be aware of: you must acount for the dimention of the 
objects that you want to place. So, the target shape must be made larger, or 
smaller, by the dimention of the objects to be placed.
Easy if you place spheres, enlarge or reduce the object by the radius of the 
spheres. If you use scale, use it on the component objects at the origin then 
place them where they belong.
If you test for a complex object, use a croase mockup made out of spheres, boxes 
and cylinders. Never use merge for that target object.

-- 
Alain
-------------------------------------------------
AAAAAA: American Association Against Acronym Abuse and Ambiguity.


Post a reply to this message

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