POV-Ray : Newsgroups : povray.general : Help with a slow difference : Help with a slow difference Server Time
2 Aug 2024 00:14:42 EDT (-0400)
  Help with a slow difference  
From: Alf Peake
Date: 28 Feb 2005 17:03:50
Message: <42239546@news.povray.org>
Any suggestions how to make the last two tests below render faster?
And why the difference in times?

Mat is a union of 240 rounded triangles (each 7 objects) on the
y-plane. I want to cut out a circular section for a table-top.

All tests +w512 +h384 +a0.3, and include
torus{ 3,0.05 translate <3.5,0,3.5> pigment{ rgb <0,1,1> } }

// Total time: 5s - 39424PPS.
object{Mat}

// Time: 9m 11s - 357PPS.
// Rr is the triangle rounding radius.
object{ Mat
   clipped_by{
      cylinder{ <3.5,-Rr*1.05, 3.5>, <3.5, Rr*1.05, 3.5>, 3 } }
   bounded_by{
      cylinder{ <3.5,-Rr*1.1, 3.5>, <3.5, Rr*1.1, 3.5>, 3.01 } }
}

// Time: 12m 27s - 263PPS.
difference{
   object{ Mat }
   cylinder{ <3.5,-Rr*1.05, 3.5>, <3.5, Rr*1.05, 3.5>, 3 inverse }
   bounded_by{
      cylinder{ <3.5,-Rr*1.1, 3.5>, <3.5, Rr*1.1, 3.5>, 3.01 } }
}

The last render can be seen here:
http://www.qsl.net/gw3srg/bits/tabletop.jpg

-- 
Alf


Post a reply to this message

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