POV-Ray : Newsgroups : povray.newusers : how to do a round hole into a box? Server Time
25 Nov 2024 09:27:00 EST (-0500)
  how to do a round hole into a box? (Message 1 to 5 of 5)  
From: newbieneedhelp
Subject: how to do a round hole into a box?
Date: 20 Jan 2006 03:35:01
Message: <web.43d09fd5a13bd4afe2802d80@news.povray.org>
Hello,

i've just started working with povray and don't know how to make a hole into
a box

I need a box 1000x1000x25
 with an round hole in middle with diameter of 144

would be very glad sb. could help me


Post a reply to this message

From: Warp
Subject: Re: how to do a round hole into a box?
Date: 20 Jan 2006 05:11:06
Message: <43d0b73a@news.povray.org>
newbieneedhelp <nomail@nomail> wrote:
> I need a box 1000x1000x25
>  with an round hole in middle with diameter of 144

difference
{ box { -<1000, 1000, 25>/2, <1000, 1000, 25>/2 }
  cylinder { <0, 0, -25.1/2>, <0, 0, 25.1/2> }
  pigment { rgb 1 }
}

-- 
                                                          - Warp


Post a reply to this message

From: Marc Jacquier
Subject: Re: how to do a round hole into a box?
Date: 20 Jan 2006 06:28:20
Message: <43d0c954$1@news.povray.org>

news:web.43d09fd5a13bd4afe2802d80@news.povray.org...
> Hello,
>
> i've just started working with povray and don't know how to make a hole
into
> a box
>
For this case, as poste Warp
For such operations on objects, have a look at the doc section 3.4.6...

Marc


Post a reply to this message

From: Sebastian H 
Subject: Re: how to do a round hole into a box?
Date: 20 Jan 2006 06:47:44
Message: <43d0cde0$1@news.povray.org>
Warp wrote:
> newbieneedhelp <nomail@nomail> wrote:
> 
>>I need a box 1000x1000x25
>> with an round hole in middle with diameter of 144
> 
> 
> difference
> { box { -<1000, 1000, 25>/2, <1000, 1000, 25>/2 }
>   cylinder { <0, 0, -25.1/2>, <0, 0, 25.1/2> }
>   pigment { rgb 1 }
> }
> 

Ok I just posted and deleted two crap messages.
What I wanted to say is that warp forgot the radius
of the cylinder which is 144/2. So it should read

difference
{ box { -<1000, 1000, 25>/2, <1000, 1000, 25>/2 }
   cylinder { <0, 0, -25.1/2>, <0, 0, 25.1/2>, 144/2 }
   pigment { rgb 1 }
}


Post a reply to this message

From: newbieneedhelp
Subject: Re: how to do a round hole into a box?
Date: 20 Jan 2006 13:25:00
Message: <web.43d12a7e7ff6df7dfe2802d80@news.povray.org>
thanks, for quick help :)


Post a reply to this message

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