POV-Ray : Newsgroups : povray.general : Solid meshes in CSG : Re: Solid meshes in CSG Server Time
30 Jul 2024 20:32:03 EDT (-0400)
  Re: Solid meshes in CSG  
From: SharkD
Date: 11 Dec 2008 16:30:00
Message: <web.4941856d7b08f33beb2e5c3e0@news.povray.org>
"SharkD" <nomail@nomail> wrote:
> This is exactly the behavior I was expecting, however in my tests this isn't in
> fact the case. See my previous post.
>
> -Mike

Here's a simple example. The intersection works; but change the intersection to
a difference and it's wonky.

-Mike

camera
{
 location  -z * 6
 look_at   0
 right     x*image_width/image_height
 rotate x * 30
 rotate y * -30
}

light_source
{
 <-3, 9, -3>
 color rgb 1
 parallel
}

plane
{
 y, 0
 pigment {color rgbt <0,0,1,1/4,>}
}

difference
{
 box
 {
  -1, 1
 }
 mesh
 {
  smooth_triangle { 0,  y,  x,  y,  z,  y}
  inside_vector y
  translate y*2
 }
 pigment {color rgbt <1,1,1,1/4,>}
}


Post a reply to this message

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