POV-Ray : Newsgroups : povray.programming : Difference of two objects : Re: Difference of two objects Server Time
8 Jul 2024 19:49:47 EDT (-0400)
  Re: Difference of two objects  
From: XiRay
Date: 6 Mar 2003 13:40:04
Message: <web.3e6795cecabb8c891e648b2c0@news.povray.org>
Alexander,

The texture of the surface of the difference is taken from the subtracted
object. In your case the subtracted block is transparant (transmit 1.0),
which makes the cutting edge transparant.
Remove the "transmit 1.0"-line and see what happens. Then adjust the texture
of the block to your desire.

(See tutorial 3.3.4 CSG Difference)

Good luck,
XiRay


INVALID_ADDRESS wrote:
>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.