Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pov-ray: Interesect finite object with half space

6 views
Skip to first unread message

S M Ryan

unread,
Jul 6, 2008, 10:46:10 PM7/6/08
to
I want to intersect a finite object with the half space above or below a plane.
The only thing I can think of is a box that big enough so that only one side
(representing the plane) intersect the object the the other faces are outside
the object; but that requires figuring out a just large enough box. Are there
simpler ways to do this?

Mike Williams

unread,
Jul 6, 2008, 11:24:35 PM7/6/08
to

Intersect it with the plane. One side of a plane is the "inside" and the
other is the "outside" for the purpose of CSG.

Which side of the plane is the "inside" isn't intuitively obvious, and
whenever I try to work it out I always end up getting it wrong. However,
since there are only two sides to choose from, you can try one and when
it turns out to be the wrong one you can inverse it.

--
Mike Williams
Gentleman of Leisure

S M Ryan

unread,
Jul 7, 2008, 12:48:47 AM7/7/08
to
In article <m6RycQHz...@econym.demon.co.uk>,
Mike Williams <nos...@econym.demon.co.uk> wrote:

Thanks. A quick check shows the direction the normal vector points to is the
outside half space.

Lilith

unread,
Aug 14, 2008, 10:10:51 AM8/14/08
to

Isn't that what clipped_by {} is for?

--
Lilith

0 new messages