|
|
Snowman <sno### [at] somewherecom> wrote:
: I am trying to create shapes in a 3D plane without using triangles, i.e. its
: a lot easier to program 1 pentagon than 5 triangles.
You'll probably get a performance boost by using triangle meshes instead
of polygons anyways, so don't be so scared of using triangles to form
more complex polygons (although I'm not sure how povray handles polygons).
As someone already suggested, making helping macros is a good idea.
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
|