POV-Ray : Newsgroups : povray.general : CSG Texturing : Re: CSG Texturing Server Time
16 Nov 2024 09:20:02 EST (-0500)
  Re: CSG Texturing  
From: Mike
Date: 8 Sep 1998 07:39:35
Message: <35F5161B.8894FA29@aol.com>
I never have POV handy when I'm reading these groups, but I think clipped_by is
what will do what you want.  I recall having this problem...ugh, just wish if I
can remember is that one worked.

If that doesn't work, you could always create a union of the keys and a union of
the keyboard, then do a simple:

union {
object {keyboard clipped_by { plane { } } }
object {keys clipped_by { plane { ) } } }
}

If the planes are cutting the wrong side just use the inverse keyword.

-Mike

Peter Popov wrote:

> I having the following problem: I have a very nice hand-coded CSG keyboard.
> I want to make a cross-section of it by intersecting it with a plane. The
> keys are gray and the body is white (roughly) and I want to see that in the
> cross-section. However, either the cutting plane gets black (if I don't
> apply texture to the intersection ) or it gets a solid color (if I *do*
> apply texture to the intersection). Is there a way to do this without
> separately intersecting each key with the cutting plane and them union them?
>
> Peter


Post a reply to this message

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