POV-Ray : Newsgroups : povray.binaries.images : Faceted Star Server Time
14 Nov 2024 06:13:33 EST (-0500)
  Faceted Star (Message 1 to 3 of 3)  
From: Dave Blandston
Subject: Faceted Star
Date: 17 Sep 2009 06:30:00
Message: <web.4ab20efff2685249df22a6900@news.povray.org>
Just a simple star with a few facets.

I made this star as part of an Esperanto flag, since my wife is learning
Esperanto. Since it's so simple I'll cheat a little and just post the source
code here in case anyone is interested...

Regards,
Dave Blandston

#local StarPoint = object {
   intersection {
      box {<-1, -.08, -1> <1, .08, 1>}
      plane {z, 0 inverse rotate 70 * x rotate -54 * y translate -1 * z}
      plane {z, 0 inverse rotate 70 * x rotate 54 * y translate -1 * z}
      plane {z, 0 inverse rotate 110 * x rotate 72 * y translate 1 * z}
      plane {z, 0 inverse rotate 110 * x rotate -72 * y translate 1 * z}
      plane {z, 0 rotate 110 * x rotate -54 * y translate -1 * z}
      plane {z, 0 rotate 110 * x rotate 54 * y translate -1 * z}
      plane {z, 0 rotate 70 * x rotate 72 * y translate 1 * z}
      plane {z, 0 rotate 70 * x rotate -72 * y translate 1 * z}
   } //intersection
   translate 1 * z
} //object

#local Star = object {
   union {
      #local I = 0;
      #while (I < 5)
         object {StarPoint rotate (I * 72) * y}
         #local I = I + 1;
      #end //#while
   } //union
   rotate -90 * x
} //object


Post a reply to this message


Attachments:
Download 'stars.png' (239 KB)

Preview of image 'stars.png'
stars.png


 

From: Carlo C 
Subject: Re: Faceted Star
Date: 18 Sep 2009 03:45:00
Message: <web.4ab3398f91d91cc69c6c61f30@news.povray.org>
"Dave Blandston" <nomail@nomail> wrote:
> Just a simple star with a few facets.
>
> I made this star as part of an Esperanto flag, since my wife is learning
> Esperanto. Since it's so simple I'll cheat a little and just post the source
> code here in case anyone is interested...
>
> Regards,
> Dave Blandston
>
> #local StarPoint = object {
>    intersection {
>       box {<-1, -.08, -1> <1, .08, 1>}
>       plane {z, 0 inverse rotate 70 * x rotate -54 * y translate -1 * z}
>       plane {z, 0 inverse rotate 70 * x rotate 54 * y translate -1 * z}
>       plane {z, 0 inverse rotate 110 * x rotate 72 * y translate 1 * z}
>       plane {z, 0 inverse rotate 110 * x rotate -72 * y translate 1 * z}
>       plane {z, 0 rotate 110 * x rotate -54 * y translate -1 * z}
>       plane {z, 0 rotate 110 * x rotate 54 * y translate -1 * z}
>       plane {z, 0 rotate 70 * x rotate 72 * y translate 1 * z}
>       plane {z, 0 rotate 70 * x rotate -72 * y translate 1 * z}
>    } //intersection
>    translate 1 * z
> } //object
>
> #local Star = object {
>    union {
>       #local I = 0;
>       #while (I < 5)
>          object {StarPoint rotate (I * 72) * y}
>          #local I = I + 1;
>       #end //#while
>    } //union
>    rotate -90 * x
> } //object

With front facets is very cool.
;)


Post a reply to this message

From: Dave Blandston
Subject: Re: Faceted Star
Date: 18 Sep 2009 08:05:01
Message: <web.4ab376d591d91cc6df22a6900@news.povray.org>
"Carlo C." <nomail@nomail> wrote:
> With front facets is very cool.
> ;)

Thank you, I hope you can use it!


Post a reply to this message

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