POV-Ray : Newsgroups : povray.beta-test : CSG Issues with disc shape. v38 beta 2. : Re: CSG Issues with disc shape. v38 beta 2. Server Time
2 Oct 2025 22:39:23 EDT (-0400)
  Re: CSG Issues with disc shape. v38 beta 2.  
From: Bald Eagle
Date: 24 Sep 2025 19:30:00
Message: <web.68d47e2be434b08f1f9dae3025979125@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:

> Blast, it doesn't work for all +- values.  Let me see if I can figure
> out why not.

Whoa.  I did not expect that.
Looks like there's some kind of clipping going on with the bounding.

- bw


#version 3.8;
global_settings {
 assumed_gamma 1.0
}

#declare E = 0.000001;

#declare Zoom = 14; //60;
camera {
 orthographic
 location <0, 0, -10>
 right    x*image_width/Zoom
 up       y*image_height/Zoom
 look_at  <0, 0, 0>
}

light_source {<0, 0, -200> rgb 1}

sky_sphere {pigment {rgb 0}}

#declare XM = 25;
#declare YM = 25;

#for (Y, -1, 1, 0.1)
 #for (X, -1, 1, 0.1)

  cone {-x, Y, x, X
  texture {pigment {rgb <abs(X), abs(Y), abs(X+Y)>} finish {emission 0.2}}
  translate <X*XM, Y*YM, 0>
  }

 #end
#end

text { ttf "arial.ttf", "+r1, -r2", 0.02, 0.0 translate <-1.2*XM,  1*YM, 0>}
text { ttf "arial.ttf", "-r1, -r2", 0.02, 0.0 translate <-1.2*XM, -1*YM, 0>}
text { ttf "arial.ttf", "r1=0, -r2", 0.02, 0.0 translate <-1.2*XM, 0, 0>}
text { ttf "arial.ttf", "+r1, +r2", 0.02, 0.0 translate < 1.1*XM,  1*YM, 0>}
text { ttf "arial.ttf", "-r1, +r2", 0.02, 0.0 translate < 1.1*XM, -1*YM, 0>}
text { ttf "arial.ttf", "-r1, r2=0", 0.02, 0.0 translate <-3, -1.05*YM, 0>}


Post a reply to this message


Attachments:
Download 'cone_test.png' (202 KB)

Preview of image 'cone_test.png'
cone_test.png


 

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