|
 |
Le_Forgeron <jgr### [at] free fr> wrote:
> On 27/07/2014 18:30, Le_Forgeron wrote:
> > On 27/07/2014 18:08, bakom wrote:
> >> For Box in POV-ray we have to give only two values i.e. corner1 and corner2
<snip>
> >
> > For once, I will say "mesh" (or mesh2, it's the same object with a
> > different syntax).
> >
> > But that's only the beginning of your problem.
> >
> >
> Another approach would be using "intersection" of "plane"s.
I was trying to make arb5 i.e. number 1st object in this link
http://ctrlv.in/363771
I use mesh for this object (but can use mesh2 also) as
#declare Red = texture {
pigment { color rgb<0.8, 0.2, 0.2> }
finish { ambient 0.2 diffuse 0.5 }
}
#declare Green = texture {
pigment { color rgb<0.2, 0.8, 0.2> }
finish { ambient 0.2 diffuse 0.5 }
}
#declare Blue = texture {
pigment { color rgb<0.2, 0.2, 0.8> }
finish { ambient 0.2 diffuse 0.5 }
}
#declare Yellow = texture {
pigment { color rgb<0.5, 0.5, 0.5> }
finish { ambient 0.2 diffuse 0.5 }
}
mesh
{
triangle{<0, 0, 0> <2, 2, 2> <0, 4, 0>
texture {Red} }
triangle{<2, 2, 2> <4, 4, 0> <0, 4, 0>
texture {Green}}
triangle{<2, 2, 2> <4, 4, 0> <4, 0, 0>
texture {Blue}}
triangle{<2, 2, 2> <0, 0, 0> <4, 0, 0>
texture {Yellow}}
}
Now I am trying to find out how to make face i.e. 1, 2, 3, 4
in above linked screen-shot.
One way is to make plan but its more complex as I have to first calculate the
normal of that plan. Is there any other way in which I make face using at-least
two vertices?
I want to convert BRL-CAD's arb5 model's vertices into POV-ray's vertices, so I
am looking into easiest way for doing it.
Post a reply to this message
|
 |