POV-Ray : Newsgroups : povray.bugreports : Solid meshes aren't really solid : Solid meshes aren't really solid Server Time
14 May 2024 07:21:13 EDT (-0400)
  Solid meshes aren't really solid  
From: SharkD
Date: 12 Dec 2008 15:25:01
Message: <web.4942c7752608ff5b3180c5030@news.povray.org>
"Walls" are missing when using solid meshes in CSG. The problem is described in
more detail in this thread:

http://news.povray.org/povray.general/thread/%3Cweb.49407a1e34307b75ef318dca0%40news.povray.org%3E/?mtop=22

Here's a simple example scene:

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
  scale 1/2
 }
 mesh
 {
  triangle {<0,1,0,>, <1,1,0,>, <0,1,1,>}
  inside_vector y
  rotate y * 180
 }
 pigment {color rgbt <1,1,1,0,>}
}


Post a reply to this message

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