POV-Ray : Newsgroups : povray.general : HeightFields and differences, clipping etc. : Re: HeightFields and differences, clipping etc. Server Time
10 Aug 2024 11:22:21 EDT (-0400)
  Re: HeightFields and differences, clipping etc.  
From: Chris Huff
Date: 4 Jan 2000 12:20:13
Message: <chrishuff_99-E7173F.12201704012000@news.povray.org>
In article <3872213e@news.povray.org>, "Patrick Dugan" 
<pat### [at] usticom> wrote:

> I have trying (somewhat successfully) to "chop" heightfields.  I first 
> used
> a bounded_by statement to make the heightfield round (to cut of the 
> corners)

Don't do that, bounded_by isn't intended to do that and is unreliable. 
Use clipped_by or intersection instead.


> but then trying to remove a "chunk" from the inside is difficult.  When I
> tried using the difference statement it never works and whatever the 
> object
> is (cube for example) ends up showing up regardless of using difference 
> or
> union.  I finally tried using a difference with a cube (with a clear
> pigment) which seems to work but according to the Povray docs I shouldn't 
> be
> trying a "difference" with a heightfield.  I guess my question is are 
> there
> any "easy" ways to remove material from a hieghtfield without going to
> convoluted methods??

CSG operations leave a surface over the areas that are removed or 
created. The workarounds are to use a clear texture on the CSG object or 
to use clipped_by.
To use more than one object with clipped_by, just use a union of the 
clipping objects. The inverse keyword might be useful too.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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