POV-Ray : Newsgroups : povray.newusers : Macro for a pentagram : Re: Macro for a pentagram Server Time
30 Jun 2024 03:52:27 EDT (-0400)
  Re: Macro for a pentagram  
From: Warp
Date: 30 Jun 2011 08:23:31
Message: <4e0c6ac2@news.povray.org>
RayZ <the### [at] gmailcom> wrote:
> Well, I want to make it so that I can define 5 points, and it will make a
> "filled" pentagram.
> Of course, I can use union, but then I will have to define ten points.
> (Goal is to use it to make shapes, and I will use vertices from the shapes to
> define the 5 vertices the pentagram will be made on)

  You can write a little macro that creates the additional points
automatically from the 5 points.

  (Of course if you are creating a regular polygon, you can simply give
the macro the amount of vertices and it could then just create all the
points from that.)

-- 
                                                          - Warp


Post a reply to this message

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