POV-Ray : Newsgroups : povray.newusers : Cut a cylinder Server Time
1 Nov 2024 15:26:51 EDT (-0400)
  Cut a cylinder (Message 1 to 4 of 4)  
From: Oleguer Vilella
Subject: Cut a cylinder
Date: 11 May 2005 06:06:57
Message: <4281d941@news.povray.org>
Hi all,

I want to cut this cylinder
======================================
cylinder { <-5, 0, 0>, <0, 0, 0>, 1 }
======================================
It's inside an union with a cone to make an arrow.
The thing that I want to do, is cut it in the middle.
I thought using a plane, but I'm not sure if this is the best way to do it.
Any ideas?

All comments are welcome.

Regards,
Oleguer


Post a reply to this message

From: Oleguer Vilella
Subject: Re: Cut a cylinder
Date: 11 May 2005 06:48:38
Message: <4281e306@news.povray.org>
Maybe something like this?:
======================================
#declare fletxa = object {
union {
cylinder { <-5, 0, 0>, <0, 0, 0>, 1 }
cone { <0, 0, 0>, 2, <3, 0, 0>, 0 }
pigment { rgb <0, 1.1, 0> }
scale <1, 1.6, 1>
rotate  170*y
rotate 25*x
rotate 45*z
translate <130.9, -23.5, 10>
no_shadow
}}

#declare tall= object { fletxa
clipped_by { plane { y, 10 } plane { -z, 3 }  }  }

object { tall translate <60, 0, 0> }
======================================

Regards,
Oleguer


news:4281d941@news.povray.org...
> Hi all,
>
> I want to cut this cylinder
> ======================================
> cylinder { <-5, 0, 0>, <0, 0, 0>, 1 }
> ======================================
> It's inside an union with a cone to make an arrow.
> The thing that I want to do, is cut it in the middle.
> I thought using a plane, but I'm not sure if this is the best way to do 
> it.
> Any ideas?
>
> All comments are welcome.
>
> Regards,
> Oleguer
>


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Cut a cylinder
Date: 20 Jul 2005 23:38:07
Message: <42df189f@news.povray.org>
I haven't read your other post, but yes, it is a good way to do it with a 
plane. Another way to do it would be with a box, remember to make it a bit 
bigger in the other axes so that you don't get a coincident surface problem.


Post a reply to this message

From: Oleguer Vilella
Subject: Re: Cut a cylinder
Date: 22 Jul 2005 05:03:42
Message: <42e0b66e@news.povray.org>
Yeah Nicolas.

Thank you for your reply.

Best regards,
Oleguer



mensaje news:42df189f@news.povray.org...
>I haven't read your other post, but yes, it is a good way to do it with a 
>plane. Another way to do it would be with a box, remember to make it a bit 
>bigger in the other axes so that you don't get a coincident surface 
>problem.
>


Post a reply to this message

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