POV-Ray : Newsgroups : povray.newusers : boolean operations between mesh and solid : boolean operations between mesh and solid Server Time
26 Jun 2024 01:55:56 EDT (-0400)
  boolean operations between mesh and solid  
From: Dicko
Date: 28 Dec 2012 10:25:01
Message: <web.50ddb8edc7530fd8ed187b800@news.povray.org>
Hi all,

It seems you cannot apply a boolean operation between a mesh2 object and a
solid? Or it computes no new surfaces?
Probably I'm missing something.

Thanks, Dick


My code:

#declare myBox = mesh2 { // a simple cube
 vertex_vectors {
  8,
  <0,0,0>, <1,0,0>, <1,1,0>, <0,1,0>, <0,0,1>, <1,0,1>, <1,1,1>, <0,1,1>
 }
 face_indices {
  12,
  <0,2,3>, <0,1,2>, <0,1,5>, <0,5,4>, <1,5,2>, <5,6,2>, <2,6,7>, <2,7,3>,
<0,3,7>, <0,7,4>, <4,5,7>, <5,6,7>
 }
 inside_vector <0.5,0.5,0.5>
 texture {pigment {rgb <0,1,0>}}
}

difference {
 object { myBox }
 box {
  <0.25, -1, 0.25>
  <0.75, 3, 0.75>
  rgb <1,0,0>
 }
}


Post a reply to this message

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