POV-Ray : Newsgroups : povray.newusers : boolean operations between mesh and solid : Re: boolean operations between mesh and solid Server Time
26 Jun 2024 01:55:01 EDT (-0400)
  Re: boolean operations between mesh and solid  
From: James Holsenback
Date: 28 Dec 2012 10:37:32
Message: <50ddbcbc@news.povray.org>
On 12/28/2012 10:21 AM, Dicko wrote:
> 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>
>   }
> }
>
>

keyword to 2nd box ;-)


Post a reply to this message

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