POV-Ray : Newsgroups : povray.newusers : Intersection help, please... Server Time
29 Nov 2024 10:44:24 EST (-0500)
  Intersection help, please... (Message 1 to 3 of 3)  
From: Patrick Hagerty
Subject: Intersection help, please...
Date: 24 Oct 1998 18:22:16
Message: <36324568.2CF63BC9@hagware.com>
I've tried to get a "solid" result when doing an intersection with a
cone and a cylinder (see code below).  I'm trying to make a castle
tower: cylindrical with a tapered lower part.  Unfortunately, when I
render the object I get a hollowed out result.  That's really not what I
want.  Can anyone tell me what I'm doing wrong?  Or is this a bug in
POVRAY?

Thanks,
Patrick Hagerty
pat### [at] hagwarecom



intersection
{
   cylinder { <0, -2, 0>, <0, 2, 0>, 1 }
   cone { <0, -2, 0>, 0, <0, 2, 0>, 2 }

   texture
   {
      White_Marble
   }
}


Post a reply to this message

From: =Bob
Subject: Re: Intersection help, please...
Date: 25 Oct 1998 11:30:33
Message: <36335229.0@news.povray.org>
Looks like you need an 'inverse' keyword either in the intersection part or 
the cone part.
'difference' may be better suited to this anyhow though, 'inverse' would still 
be needed. An intersection is the surface interaction zone, based upon the 
"last" primitive in the list; where-as difference cuts away non-interactive 
zones of all other primitives other than the first listed (kind of opposite 
but not entirely so).
The inside of your cone here is wanted for the interaction, thus 'inverse' 
would do.

Message <36324568.2CF63BC9@hagware.com>, Patrick Hagerty  typed...
>
>I've tried to get a "solid" result when doing an intersection with a
>cone and a cylinder (see code below).  I'm trying to make a castle
>tower: cylindrical with a tapered lower part.  Unfortunately, when I
>render the object I get a hollowed out result.  That's really not what I
>want.  Can anyone tell me what I'm doing wrong?  Or is this a bug in
>POVRAY?
>
>Thanks,
>Patrick Hagerty
>pat### [at] hagwarecom
>
>
>
>intersection
>{
>   cylinder { <0, -2, 0>, <0, 2, 0>, 1 }
>   cone { <0, -2, 0>, 0, <0, 2, 0>, 2 }
>
>   texture
>   {
>      White_Marble
>   }
>}
>
>

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/POVring.html
=Bob


Post a reply to this message

From: Patrick Hagerty
Subject: Re: Intersection help, please...
Date: 25 Oct 1998 11:59:00
Message: <36335937.84FBE8BF@hagware.com>
Thanks.  I had tried using 'inverse', but I apparently put it in the
wrong place(s).  Upon your suggestion I made several more attempts
experimenting with where I put the 'inverse' and eventually got what I
expected to get.

Patrick Hagerty
pat### [at] hagwarecom


Post a reply to this message

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