POV-Ray : Newsgroups : povray.binaries.images : Sphere slicing Server Time
28 Mar 2024 19:38:10 EDT (-0400)
  Sphere slicing (Message 1 to 3 of 3)  
From: Bald Eagle
Subject: Sphere slicing
Date: 14 Oct 2019 09:55:01
Message: <web.5da47d5a526f32aa4eec112d0@news.povray.org>
I get clean fully visible slices.

 #version 3.8;
 global_settings {assumed_gamma 1.0 }
 #include "colors.inc"

#declare Aspect = image_width/image_height;

 camera {
  location <0, 5, -10>
  right x*Aspect
  look_at <0, 0, 0>
 }

light_source {<0, 5, -10> color White}

plane {z, 1 pigment {White*0.2}}

#declare Line = 0.015;
#declare LinePigment = pigment {Yellow+White/2}

#declare Slice = 0.1;
#declare Sphere = sphere {0, 0.5 }
#declare Box = box {<-1, 0, -1> <1, -Slice, 1>}

#declare E = 0.000001;

#for (M, -0.5, 0.5, Slice)
 intersection {
  object {Sphere}
  object {Box translate y*M}
  translate x*M*10
  pigment {Red}
 }
#end


Post a reply to this message


Attachments:
Download 'sphereslicing.png' (249 KB)

Preview of image 'sphereslicing.png'
sphereslicing.png


 

From: Thomas de Groot
Subject: Re: Sphere slicing
Date: 15 Oct 2019 02:27:47
Message: <5da566e3$1@news.povray.org>
Op 14/10/2019 om 15:51 schreef Bald Eagle:
> I get clean fully visible slices.
> 

LOL!

For the Small Code Contest.

-- 
Thomas


Post a reply to this message

From: Bald Eagle
Subject: Re: Sphere slicing
Date: 15 Oct 2019 07:10:01
Message: <web.5da5a85f7f10b9084eec112d0@news.povray.org>
See code in other thread.

(Really, ALL sections should support attachments...  :| )


Post a reply to this message


Attachments:
Download 'sphereslicing.png' (250 KB)

Preview of image 'sphereslicing.png'
sphereslicing.png


 

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