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