POV-Ray : Newsgroups : povray.general : 3D Glass-like block and problem with inner faces : Re: 3D Glass-like block and problem with inner faces Server Time
17 Jun 2024 10:39:51 EDT (-0400)
  Re: 3D Glass-like block and problem with inner faces  
From: Saman
Date: 26 Nov 2014 08:25:01
Message: <web.5475d402569da8754a99f14a0@news.povray.org>
Here is a very simple example with just two cubes which share a common face:

Link to the image:
https://www.dropbox.com/s/rfkcvxlerko3qmw/Mesh2%28merged%29.png?dl=0

I have used the "merge" function to merge the two cubes, but as you can see,
the shared inner face still appears.

I have defined two cubes as follow:

//POV-Ray

#include "colors.inc"
#include "textures.inc"


background { color rgb < 0.8945, 0.8945, 0.8945 > }

camera { location <20, 5, -20>   look_at  <5, 5,  5> }

light_source { <100, 0, 0> color White}


merge{

  mesh2{ //Box 1
 vertex_vectors {
  8,
  <0,0,0>, <5,0,0>, <0,5,0>, <5,5,0>,
  <0,0,5>, <5,0,5>, <0,5,5>, <5,5,5>,
 }
 face_indices{
  12,
  <0,1,2>, <1,2,3>,
  <4,5,6>, <5,6,7>,
  <0,2,4>, <6,2,4>,
  <1,3,5>, <7,3,5>,
  <0,1,4>, <5,1,4>,
  <2,6,3>, <7,6,3>,
 }
    texture { pigment {color Black transmit 0.9} finish {phong .8} }
  }

  mesh2{ //Box 2
 vertex_vectors {
  8,
  <5,0,0>, <10,0,0>, <5,5,0>, <10,5,0>,
  <5,0,5>, <10,0,5>, <5,5,5>, <10,5,5>,
 }
 face_indices{
  12,
  <0,1,2>, <1,2,3>,
  <4,5,6>, <5,6,7>,
  <0,2,4>, <6,2,4>,
  <1,3,5>, <7,3,5>,
  <0,1,4>, <5,1,4>,
  <2,6,3>, <7,6,3>,
 }
    texture { pigment {color Black transmit 0.9} finish {phong .8} }
  }

}


Post a reply to this message

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