POV-Ray : Newsgroups : povray.programming : this : this Server Time
28 Jul 2024 10:15:42 EDT (-0400)
  this  
From: Rafal 'Raf256' Maj
Date: 24 Jun 2002 02:03:22
Message: <Xns923751720CF1raf256com@204.213.191.226>
Hi,
I have a littlie future request / suggestion.
Problem :
If I want to i.e. center object I have to do soemthing like :

#declare obj = union { .....  }
object { obj translate (max_extent(obj)-min_extent(obj))/2 }

So it would be useful to declare keyword 'this' :

object { obj translate (max_extent(this)-min_extent(this))/2 }

so 'this' is currently declared object, like :

union {
  // 'this' is now an empty object
  sphere { 0 1 } // 'this' is now an sphere
  sphere { 0 5 } // 'this' is now an union of two spheres
  box { 0, 1
     // 'this' placed here - is only a box
  }
  // 'this' placed here - is union of 2 spheres an a box
}


-- 


Post a reply to this message

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