POV-Ray : Newsgroups : povray.programming : Difference of two objects : Difference of two objects Server Time
8 Jul 2024 19:20:47 EDT (-0400)
  Difference of two objects  
From:
Date: 6 Mar 2003 12:36:00
Message: <3e678700@news.povray.org>
Hi Povray-experts,

I have a little problem when doing a difference operation between two
objects. The first one is a sphere which I want to "cut" with a box. The
result should be solid sphere again with one flat side. When using the
script below, Povray performs the cutting but the sphere is not solid
anymore and looks like a hollow object. Is there an easy way to close the
sphere again or should I try something totally different?

Thanks for your ideas!

Regards,

Alex


My script:
#include "colors.inc"

background {White}

camera {angle 15 location <0, -50, -50> look_at <0, 0, 0>}

light_source {<0, 0, -50> color White}
light_source {<0, -20, -20> color White}

difference
{
 blob
 {
  threshold 0.001
  sphere
  {
   <0.130883, -0.495058, 0.751857>, 1.287408, 1
   pigment
   {
    color CHSV2RGB(<240.000000, 0.300000, 1.000000>)
   }
  }
   finish {phong 1}
 }
 box
 {
  <10, 10, 0>, <-10, -10, -5>
  texture
   {
    pigment
    {
     color Yellow
     transmit 1.0
    }
   }
 }
}

_________________________________



Ale### [at] gmxde
http://www.it99.org/axl
+49 (0) 1 75/ 410 72 68
ICQ# 36765668
_________________________________


Post a reply to this message

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