POV-Ray : Newsgroups : povray.general : clipped_by ... Server Time
7 Nov 2024 19:22:23 EST (-0500)
  clipped_by ... (Message 1 to 10 of 10)  
From: 25ct
Subject: clipped_by ...
Date: 13 Jan 2002 16:42:44
Message: <3c41ff54@news.povray.org>
Can I add a temporary texture to 'clipped_by' so that I can see a little
more clearly what I'm doing? It's driving me nuts!!  ;)
   ATM, I'm just trying to cut a round hole in a box, but instead of a hole
in the box, I'm getting a circle of the box' texture.

  Where am I going wrong with this?

  object{

box {
  <-1.3, -1.3, -1.3>
  < 1.3,  1.3,  1.3>

 translate <0, 1, 5>}

texture {T_Stone20}

 clipped_by {sphere { <0, 1, 3> .8 }}}



   ~Steve~


Post a reply to this message

From: Kari Kivisalo
Subject: Re: clipped_by ...
Date: 13 Jan 2002 17:04:57
Message: <3C4204B6.CEC7F316@engineer.com>
25ct wrote:
>
>  clipped_by {sphere { <0, 1, 3> .8 }}}

clipped_by {sphere { <0, 1, 3> .8 inverse}}}
 
_____________
Kari Kivisalo


Post a reply to this message

From: Warp
Subject: Re: clipped_by ...
Date: 13 Jan 2002 17:22:34
Message: <3c4208aa@news.povray.org>
Remember, clipped_by works like intersection, not like difference.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: 25ct
Subject: Re: clipped_by ...
Date: 13 Jan 2002 17:36:03
Message: <3c420bd3$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3c4208aa@news.povray.org...

>   Remember, clipped_by works like intersection, not like difference.

      Thanks Warp, I'm just practising with this at the moment. I want to
put a hole in a door and add one of those 'spy-holes'. The lens may be
difficult though.

    ~Steve~


>
> --
> #macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb
x]
> [1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
> -1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// -
Warp -


Post a reply to this message

From: 25ct
Subject: Re: clipped_by ...
Date: 13 Jan 2002 17:36:05
Message: <3c420bd5@news.povray.org>
"Kari Kivisalo" <ray### [at] engineercom> wrote in message
news:3C4204B6.CEC7F316@engineer.com...
> 25ct wrote:
> >
> >  clipped_by {sphere { <0, 1, 3> .8 }}}
>
> clipped_by {sphere { <0, 1, 3> .8 inverse}}}

     Thanks Kari, worked a treat. :)

       ~Steve~

>
> _____________
> Kari Kivisalo


Post a reply to this message

From: Christopher James Huff
Subject: Re: clipped_by ...
Date: 13 Jan 2002 18:00:54
Message: <chrishuff-9A3F8D.18014013012002@netplex.aussie.org>
In article <3c420bd3$1@news.povray.org>, "25ct" <25c### [at] lineonenet> 
wrote:

>       Thanks Warp, I'm just practising with this at the moment. I want to
> put a hole in a door and add one of those 'spy-holes'. The lens may be
> difficult though.

This sounds like difference would be a better choice anyway...what was 
your reason for using clipped_by?

-- 
 -- 
Christopher James Huff <chr### [at] maccom>


Post a reply to this message

From: 25ct
Subject: Re: clipped_by ...
Date: 13 Jan 2002 18:23:50
Message: <3c421706@news.povray.org>
"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> In article <3c420bd3$1@news.povray.org>, "25ct" <25c### [at] lineonenet>
> wrote:
>
> >       Thanks Warp, I'm just practising with this at the moment. I want
to
> > put a hole in a door and add one of those 'spy-holes'. The lens may be
> > difficult though.
>
> This sounds like difference would be a better choice anyway...what was
> your reason for using clipped_by?

    Just to put a hole in a door so that I can add the spy-hole, eg, a lens
and surrounding fittings.
    Is there another way Chris? What would difference do?

       ~Steve~




>
> --
>  --
> Christopher James Huff <chr### [at] maccom>


Post a reply to this message

From: Christopher James Huff
Subject: Re: clipped_by ...
Date: 13 Jan 2002 21:00:40
Message: <chrishuff-A00727.21012913012002@netplex.aussie.org>
In article <3c421706@news.povray.org>, "25ct" <25c### [at] lineonenet> wrote:

>     Just to put a hole in a door so that I can add the spy-hole, eg, a lens
> and surrounding fittings.
>     Is there another way Chris? What would difference do?

The "difference" operation "cuts out" one object from another, leaving a 
closed surface behind as though it were cutting a solid block of 
material (though the cut surface has the texture of the cutting object). 
The "clipped_by" feature is an object attribute that removes parts of 
the surface outside a clipping shape, leaving gaps in the surface.

-- 
 -- 
Christopher James Huff <chr### [at] maccom>


Post a reply to this message

From: 25ct
Subject: Re: clipped_by ...
Date: 13 Jan 2002 21:59:52
Message: <3c4249a8@news.povray.org>
"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...

>
> The "difference" operation "cuts out" one object from another, leaving a
> closed surface behind as though it were cutting a solid block of
> material (though the cut surface has the texture of the cutting object).
> The "clipped_by" feature is an object attribute that removes parts of
> the surface outside a clipping shape, leaving gaps in the surface.

      Thanks for that, I understand it now.


           ~Steve~


>
> --
>  --
> Christopher James Huff <chr### [at] maccom>


Post a reply to this message

From: Warp
Subject: Re: clipped_by ...
Date: 14 Jan 2002 10:53:55
Message: <3c42ff12@news.povray.org>
Christopher James Huff <chr### [at] maccom> wrote:
: The "difference" operation "cuts out" one object from another, leaving a 
: closed surface behind as though it were cutting a solid block of 
: material (though the cut surface has the texture of the cutting object). 
: The "clipped_by" feature is an object attribute that removes parts of 
: the surface outside a clipping shape, leaving gaps in the surface.

  Note that in some cases clipping might be faster than differencing.
If the differenced surface is not seen, it's better to use clipping.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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