|
![](/i/fill.gif) |
In article <38FB56CE.EEB42B36@my-dejanews.com>,
gre### [at] my-dejanews com wrote:
> No, sorry, I didn't want CSG, because my object is a complex blob.
Blobs work fine with CSG...just do something like this:
#macro BlobComponents()
// put your blob components here, to avoid
// having to duplicate them for each blob which
// uses them.
#end
#macro MakeBlobContainer(LiqHeight, ThreshDiff, Thresh, GlassMaterial,
LiqMaterial)
union {
difference {
blob {BlobComponents() threshold Thresh}
blob {BlobComponents() threshold Thresh+ThreshDiff}
material {GlassMaterial}
}
intersection {
blob {BlobComponents() threshold Thresh+ThreshDiff-0.01}
plane {y, LiqHeight}
material {LiqMaterial}
}
}
#end
And use ThreshDiff to control the thickness of the blob "container".
> I want the interior or texture or media to be two different things (glass
> vs. glass+liquid).
I am not sure what you mean...
--
Christopher James Huff - Personal e-mail: chr### [at] yahoo com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |