POV-Ray : Newsgroups : povray.binaries.images : Re: hole wanted Server Time
20 Nov 2024 00:43:45 EST (-0500)
  Re: hole wanted (Message 1 to 4 of 4)  
From: JRG
Subject: Re: hole wanted
Date: 29 Oct 2001 15:58:38
Message: <3bddc2fe$1@news.povray.org>
Your cylinder is alligned with the X axis.
Try something like cylinder {-z,z,1 etc}in order to have it alligned with
the Z axis.

--
Jonathan.

"marabou" <not### [at] availableyet> ha scritto nel messaggio
news:3bddc064@news.povray.org...
>
> i tried to make an difference between a box and a cylinder:
> but the result was a differenced box.
> what went wrong?
>
> code follows:
> -------------------------
> #declare fl_bock=
>
> difference{
> box {
>         <0,0,0>,<1,1,1>
>         scale <0.15,0.1,0.05>
> }
> cylinder {
>         <0,0,0>,<1,0,0>,1
>         scale <0.04,0.04,1>
>         translate <0.15/2,0.1,-0.01>
> }
>         pigment{color Red}
> }//difference
>
> object{fl_bock}
> -------------------------
>
> thanks for hints
>


Post a reply to this message

From: Bill DeWitt
Subject: Re: hole wanted
Date: 29 Oct 2001 16:03:53
Message: <3bddc439$1@news.povray.org>
Replace "difference" with "union" and see what you get. Your cylinder is
turned the wrong way and scaled way off. Try...

cylinder {
        <0,0,0>,<0,0,1>,1
        scale <1,0.04,0.04>
        translate <0.15/2,0.1,-0.01>

    ... but even that could use some fixing.


"marabou" <not### [at] availableyet> wrote in message
news:3bddc064@news.povray.org...
>
> i tried to make an difference between a box and a cylinder:
> but the result was a differenced box.
> what went wrong?
>
> code follows:
> -------------------------
> #declare fl_bock=
>
> difference{
> box {
>         <0,0,0>,<1,1,1>
>         scale <0.15,0.1,0.05>
> }
> cylinder {
>         <0,0,0>,<1,0,0>,1
>         scale <0.04,0.04,1>
>         translate <0.15/2,0.1,-0.01>
> }
>         pigment{color Red}
> }//difference
>
> object{fl_bock}
> -------------------------
>
> thanks for hints
>


Post a reply to this message

From: Bill DeWitt
Subject: Re: hole wanted
Date: 29 Oct 2001 16:05:37
Message: <3bddc4a1$1@news.povray.org>
"Bill DeWitt" <bde### [at] cflrrcom> wrote in message
news:3bddc439$1@news.povray.org...
>     Replace "difference" with "union" and see what you get. Your cylinder
is
> turned the wrong way and scaled way off. Try...
>
> cylinder {
>         <0,0,0>,<0,0,1>,1
>         scale <1,0.04,0.04>
>         translate <0.15/2,0.1,-0.01>
>
>     ... but even that could use some fixing.

    Sorry...

cylinder {
        <0,0,0>,<0,0,1>,1
        scale <0.04,0.04,1>
        translate <0.15/2,0.1,-0.01>


Post a reply to this message

From: marabou
Subject: Re: hole wanted
Date: 29 Oct 2001 16:11:28
Message: <3bddc600@news.povray.org>
i already know that i sleeped as i searched for about half an hour. i 
thought the postings were killed faster.
i am pleased about the correction.

Bill DeWitt wrote:

>     Replace "difference" with "union" and see what you get. Your cylinder
>     is
> turned the wrong way and scaled way off. Try...
> 
> cylinder {
>         <0,0,0>,<0,0,1>,1
>         scale <1,0.04,0.04>
>         translate <0.15/2,0.1,-0.01>
> 
>     ... but even that could use some fixing.
>


Post a reply to this message

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