|
|
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
|
|