POV-Ray : Newsgroups : povray.advanced-users : Box using different points : Re: Box using different points Server Time
14 May 2024 21:29:40 EDT (-0400)
  Re: Box using different points  
From: bakom
Date: 18 May 2015 02:15:01
Message: <web.5559820f60156bc75d0ff6fc0@news.povray.org>
"LanuHum" <Lan### [at] yandexru> wrote:
> "bakom" <gswithbains> wrote:
> > Hello, I am using Box macro for making box but it uses only two points.
> > I have eight points as
> > a<0, 0, 0>
> > b<1, 0, 0>
> > c<1, 1, 0>
> > d<0, 1, 0>
> > e<0, 1, 1>
> > f<0, 0, 1>
> > g<1, 0, 1>
> > h<1, 1, 1>
> >
> > How can I make a box using all these eight points?
> >
> >
> > --
> > Gurwinder Singh Bains
>
> #declare Default_texture = pigment {rgb 0.8}
>
>
> #declare a = <0, 0, 0>;
> #declare b = <1, 0, 0>;
> #declare c = <1, 1, 0>;
> #declare d = <0, 1, 0>;
> #declare e = <0, 1, 1>;
> #declare f = <0, 0, 1>;
> #declare g = <1, 0, 1>;
> #declare h = <1, 1, 1>;
>
> #declare Box = mesh{
>
> triangle{a,b,c}
> triangle{a,c,d}
> triangle{a,d,f}
> triangle{e,d,f}
> triangle{c,d,e}
> triangle{c,e,h}
> triangle{a,b,g}
> triangle{a,f,g}
> triangle{b,c,g}
> triangle{g,h,c}
> triangle{e,f,g}
> triangle{e,g,h}
>
> texture{Default_texture}
> }
>
> Box


Great, thats what I was trying but can get it because I was doing mistake by not
writing all the triangles into mesh.
Thanks :)


Post a reply to this message

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