POV-Ray : Newsgroups : povray.newusers : Where did THAT come from...? : Re: Where did THAT come from...? Server Time
14 May 2024 11:55:18 EDT (-0400)
  Re: Where did THAT come from...?  
From: FractRacer
Date: 25 Mar 2014 18:34:33
Message: <53320479$1@news.povray.org>

> I'm trying to hunt down the origin of an unexpected black box in a scene.
>
> Is there something like Trace() that I can use to find out where the
> object in question is defined?  I don't care if there are 7 different
> objects overlapping, at least I'd know which 7 to look into...
>

You can use min_extent and max_extent which give the coordinates of the 
bounding limits of the object. Use debug to display the values.

#declare Min = min_extent (Obj);
#declare Max = max_extent (Obj);

#debug concat("[X0=",str(Min.x,1,0),"][X1=",str(Max.x,1,0)"]\n")
#debug concat("[Y0=",str(Min.y,1,0),"][Y1=",str(Max.y,1,0)"]\n")
#debug concat("[Z0=",str(Min.z,1,0),"][Z1=",str(Max.z,1,0)"]\n")

In hope this helps you.
Lionel.

-- 
Do not judge my words, judge my actions.

---

http://www.avast.com


Post a reply to this message

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