POV-Ray : Newsgroups : povray.general : clipped_by Server Time
25 Dec 2024 21:01:09 EST (-0500)
  clipped_by (Message 1 to 3 of 3)  
From: Mike Horvath
Subject: clipped_by
Date: 11 Sep 2016 01:22:06
Message: <57d4e9fe$1@news.povray.org>
I have the following building model:

merge
{
	intersection
	{
		plane {+x + y,0 translate +y * 3/4}
		plane {-x + y,0 translate +y * 3/4}
		box {-1,+1}
		translate	+y
		scale		1/2
	}
	box {<0,0,0,>,<+1/8,+1/1,+1/8,>}
	clipped_by
	{
		box {<-1/8,+0/1,-1,>,<+1/8,+1/4,+1/1,>}
	}
	hollow
	pigment {color rgbt <1,0,0,0>}
}

However, the clipped_by does not seem to be working. Instead of the 
clipped part being removed, it is retained and everything else is 
removed. Am I using the clipped_by statement wrong? Thanks.

Mike


Post a reply to this message

From: clipka
Subject: Re: clipped_by
Date: 11 Sep 2016 03:26:43
Message: <57d50733$1@news.povray.org>
Am 11.09.2016 um 07:22 schrieb Mike Horvath:

> Am I using the clipped_by statement wrong?

Yup, you are. `clipped_by` is intersection-ish in its mode of operation.
For a difference-ish operation, use `clipped by { box { ... inverse } }`.


Post a reply to this message

From: Mike Horvath
Subject: Re: clipped_by
Date: 11 Sep 2016 04:00:45
Message: <57d50f2d$1@news.povray.org>
On 9/11/2016 3:26 AM, clipka wrote:
> Am 11.09.2016 um 07:22 schrieb Mike Horvath:
>
>> Am I using the clipped_by statement wrong?
>
> Yup, you are. `clipped_by` is intersection-ish in its mode of operation.
> For a difference-ish operation, use `clipped by { box { ... inverse } }`.
>


Aaaah... okay. Thanks!


Mike


Post a reply to this message

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