|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi. I am making a macro for a pentagram, or a 5-pointed star. I have tried to do
that by using an intersection of 5 triangles, but then I learned intersection
doesn't work. So is there another way to make one?
#macro pentagram(A,B,C,D,E)
object{pentagon(A,B,C,D,E)}
clipped_by{
//so what to clip
}
#end
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 30.06.2011 04:32, schrieb RayZ:
> Hi. I am making a macro for a pentagram, or a 5-pointed star. I have tried to do
> that by using an intersection of 5 triangles, but then I learned intersection
> doesn't work. So is there another way to make one?
Maybe the "prism" object helps you with whatever you're trying to
achieve; with "linear_spline", you just give it the corner points of an
arbitrary 2D polygon, and POV-Ray will extrude it in the 3rd dimension.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
RayZ <the### [at] gmailcom> wrote:
> Hi. I am making a macro for a pentagram, or a 5-pointed star. I have tried to do
> that by using an intersection of 5 triangles, but then I learned intersection
> doesn't work. So is there another way to make one?
Is there a reason it has to be an intersection of triangles rather than
a simple union of them?
--
- Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp <war### [at] tagpovrayorg> wrote:
> RayZ <the### [at] gmailcom> wrote:
> > Hi. I am making a macro for a pentagram, or a 5-pointed star. I have tried to do
> > that by using an intersection of 5 triangles, but then I learned intersection
> > doesn't work. So is there another way to make one?
>
> Is there a reason it has to be an intersection of triangles rather than
> a simple union of them?
>
> --
> - Warp
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)
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |