POV-Ray : Newsgroups : povray.general : How to make a pierced dome? : Re: How to make a pierced dome? Server Time
9 Aug 2024 23:24:39 EDT (-0400)
  Re: How to make a pierced dome?  
From: Chris Huff
Date: 17 Apr 2000 22:03:55
Message: <chrishuff_99-AFFEA4.21064117042000@news.povray.org>
In article <38fb6f9e.5001681@news.povray.org>, mrr### [at] sphericademoncouk 
(Matt Moose) wrote:

> I need to make a hemispherical dome with a thin metallic surface,
> similar to a pocket watch cover, and pierce it with simple shapes. Can
> anyone advise on how to do this please? (The piercing of these shapes
> must not interfere with other nearby objects if possible, as the shape
> holes are making way for other objects to poke through).
> 
> Many thanks for all the help I've received here so far

Hmm, just use CSG:

difference {
    difference {
        sphere {< 0, 0, 0>, 1}// the dome

        sphere {< 0, 0, 0>, 0.95}// hollow it out
        plane {y, 0}// chop half of it off to make a hemisphere
        scale < 1, 0.5, 1>// flatten it a bit if you want
    }

    cylinder {< 0, 0, 0>, < 1, 1, 0>, 0.3}// chop whatever shapes you
    cylinder {< 0, 0, 0>, <-1, 1, 0>, 0.3}// want out of it.
}

If the dome is really a hemisphere, you can just remove the scale and 
the outer difference and place the cutting shapes inside the inner 
difference. Or you could place the scale inside the two sphere 
statements...there are many possible ways to do it.

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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