POV-Ray : Newsgroups : povray.beta-test : Strange results from min_extent and max_extent : Strange results from min_extent and max_extent Server Time
19 Jun 2021 18:17:04 EDT (-0400)
  Strange results from min_extent and max_extent  
From: Thomas de Groot
Date: 17 Feb 2019 03:50:05
Message: <5c69203d$1@news.povray.org>
Using povray-3.8.0-alpha.10013324-av645-Win64

When using:

#local Object=
difference {
   sphere {<0,0,0>, 6.0}
   disc {<0,0,0>, y, 6.1}
}
//----------------------------------------
#declare Min = min_extent(Object);
#declare Max = max_extent(Object);
#debug concat("\n  min_extent Object: <",vstr(3, Min, ", ", 0,3),">\n")
#debug concat("  max_extent Object: <",vstr(3, Max, ", ", 0,3),">\n\n")
//----------------------------------------

My intuition tells me that the results should be:
Min = <-6.000, 0.000, -6.000>
Max = < 6.000, 6.000,  6.000>

However, I get the following:
Min = <-6.000, -6.000, -6.000>
Max = < 6.000,  6.000,  6.000>

I never noticed this before while I extensively use these features. Is 
this a bug or am I stupid?

-- 
Thomas


Post a reply to this message

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