POV-Ray : Newsgroups : povray.newusers : determining location of an object that has been transformed and rotated : Re: determining location of an object that has been transformed and rotated Server Time
2 Nov 2024 03:16:07 EDT (-0400)
  Re: determining location of an object that has been transformed and rotated  
From: Mike Williams
Date: 15 Sep 2004 18:30:21
Message: <G7bShDAbHMSBFwNd@econym.demon.co.uk>
Wasn't it Jeremiah Isaacs who wrote:
>Where is the center of the sphere after the transformations in <x,y,z>
>coordinates?

Since it's spherically symmetrical, you can always ask POV where its
centre is. 

#declare MySphere = 
sphere {0,1
  translate z*10
  rotate SomeVector
} 

#declare Centre = (max_extent(MySphere) + min_extent(MySphere))/2;

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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