POV-Ray : Newsgroups : povray.newusers : Constructive Solid Geometry Server Time
5 Nov 2024 09:21:33 EST (-0500)
  Constructive Solid Geometry (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: CMcCabe
Subject: Constructive Solid Geometry
Date: 20 Mar 2000 18:48:08
Message: <38D6B89B.B5FD14D5@fcmail.com>
is it possible to subtract two shapes in a single difference statement?
as in this:
difference {
  box1       //the box that is subtracted from
  box2       //box1 has this shape subtracted from it
  box3       //does box3 have this shape subtracted from it as well?
}//end difference statement

and can anyone point me to a tutorial on csg?

Many thanks for any help,
CMcCabe


Post a reply to this message

From: Ken
Subject: Re: Constructive Solid Geometry
Date: 20 Mar 2000 19:06:58
Message: <38D6BD83.A1A21A46@pacbell.net>
CMcCabe wrote:
> 
> is it possible to subtract two shapes in a single difference statement?
> as in this:
> difference {
>   box1       //the box that is subtracted from
>   box2       //box1 has this shape subtracted from it
>   box3       //does box3 have this shape subtracted from it as well?
> }//end difference statement
> 
> and can anyone point me to a tutorial on csg?
> 
> Many thanks for any help,
> CMcCabe

It is easist to think of this way. Box 1 is the only object acted upon
in a csg operation (the first object in a csg operation). In the above
example box 1 will be acted upon by box 2 and box 3 but box 2 will not
be acted upon by box 3.

It is possible to nest csg operations - 

difference {
             union {
                    box1
                    box2
                   }
             box3
           }

In the above box 1 and box 2 are unioned together and then differenced
by box 3 so that box 1 and box 2 are both acted upon by box 3.

intersection {
               merge {
                        box 1
                        box 2
                     }
               box 3
             }

In the above box 1 is merged with box 2, and then box 1 and box 2,
are both intersected by box 3. You can use any combination and depth
of csg nesting to acheive the desired shape you are looking for.


POV-Ray tutorials can be found by following this link

http://www.povray.org/links/3D_Tutorials/POV-Ray_Tutorials/

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: CMcCabe
Subject: Re: Constructive Solid Geometry
Date: 21 Mar 2000 17:20:19
Message: <38D7F57D.76260680@fcmail.com>
i found out what i did wrong and now have another question
in using a merge or difference statement, why is it that objects just
dissappear if they are not touching?

as for tutorials...  after doing a text search for 'geometry' or 'csg' in the
page, i couldn't find what i was looking for


Post a reply to this message

From: Ken
Subject: Re: Constructive Solid Geometry
Date: 21 Mar 2000 18:28:38
Message: <38D8060D.7D4178F6@pacbell.net>
CMcCabe wrote:
> 
> i found out what i did wrong and now have another question
> in using a merge or difference statement, why is it that objects just
> dissappear if they are not touching?

It would be hard to say unless you provided me with a specific example
to look at. Needless to say a CSG operation (except a union) requires
that the objects in the CSG must be touching for the operation to work
properly. In your original example the only object that would ever be
visible in the scene would be box 1. Box 2 and box 3 are only reference
shapes for the operation and would not be visible regardless if they
touched box 1 or not.
 
> as for tutorials...  after doing a text search for 'geometry' or 'csg' in the
> page, i couldn't find what i was looking for

Try this page; chapter 8 - http://jan.ucc.nau.edu/~dld6/pov_lessons/index.html

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Steve
Subject: Re: Constructive Solid Geometry
Date: 22 Mar 2000 16:53:56
Message: <slrn8dhqq0.4tp.sjlen@zero-pps.localdomain>
On Tue, 21 Mar 2000 17:19:41 -0500, CMcCabe wrote:
>i found out what i did wrong and now have another question
>in using a merge or difference statement, why is it that objects just
>dissappear if they are not touching?
>
>as for tutorials...  after doing a text search for 'geometry' or 'csg' in the
>page, i couldn't find what i was looking for
>
The POV documentation describes CSG very well along with examples.  
When I first got POV, I printed the whole manual out and used to take
various sections to work with me so that I could read them on the bus. 




-- 
Cheers
Steve              email mailto:sjl### [at] ndirectcouk

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

  3:41pm  up 3 days, 12:16,  6 users,  load average: 1.81, 1.50, 1.25


Post a reply to this message

From: Ken
Subject: Re: Constructive Solid Geometry
Date: 22 Mar 2000 17:49:24
Message: <38D94E50.56F2D68B@pacbell.net>
Steve wrote:

> The POV documentation describes CSG very well along with examples.
> When I first got POV, I printed the whole manual out and used to take
> various sections to work with me so that I could read them on the bus.

Gee Steve, was that a disguised RTFM relpy I just detected ? :)

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: sighmoan
Subject: Re: Constructive Solid Geometry
Date: 23 Mar 2000 02:26:05
Message: <38d9c70d@news.povray.org>
"Steve" <sjl### [at] ndirectcouk> wrote in message
news:slr### [at] zero-ppslocaldomain...

> The POV documentation describes CSG very well along with examples.
> When I first got POV, I printed the whole manual out and used to take
> various sections to work with me so that I could read them on the bus.

Any simple way to reformat the manual so that it will print compactly--in
other words, without reams of white space/scratch paper between
sub-sections?

--
s. (who reads TFM on his smoke breaks, but keeps a quad notebook for ideas)


Post a reply to this message

From: Ken
Subject: Re: Constructive Solid Geometry
Date: 23 Mar 2000 04:43:23
Message: <38D9E780.19D60849@pacbell.net>
sighmoan wrote:
> 
> "Steve" <sjl### [at] ndirectcouk> wrote in message
> news:slr### [at] zero-ppslocaldomain...
> 
> > The POV documentation describes CSG very well along with examples.
> > When I first got POV, I printed the whole manual out and used to take
> > various sections to work with me so that I could read them on the bus.
> 
> Any simple way to reformat the manual so that it will print compactly--in
> other words, without reams of white space/scratch paper between
> sub-sections?

Besides the Windows .hlp format there are 3 other versions of the docs
available at the link below - .pdf, .doc, and html. Choose your favorite.

http://www.povray.org/ftp/pub/povray/Official/Docs/

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Steve
Subject: Re: Constructive Solid Geometry
Date: 23 Mar 2000 06:22:21
Message: <slrn8diq1q.5ks.sjlen@zero-pps.localdomain>
On Wed, 22 Mar 2000 14:50:56 -0800, Ken wrote:
>
>
>Steve wrote:
>
>> The POV documentation describes CSG very well along with examples.
>> When I first got POV, I printed the whole manual out and used to take
>> various sections to work with me so that I could read them on the bus.
>
>Gee Steve, was that a disguised RTFM relpy I just detected ? :)

Yes: The only thing I forgot was the links to the pov docs in all their
different forms. 

I've been using the product for about two years now and still use my 
text based version of the Official Pov docs for almost every single
pov project I work on, I've even got a little script that opens it
up for me in it's own Xterminal window with my prefered colours, 
I've named the script 'emanuel'. 

-- 
Cheers
Steve              email mailto:sjl### [at] ndirectcouk

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

 12:35am  up 3 days, 21:10,  5 users,  load average: 1.18, 1.28, 1.21


Post a reply to this message

From: sighmoan
Subject: Re: Constructive Solid Geometry
Date: 23 Mar 2000 09:19:18
Message: <38da27e6@news.povray.org>
"Ken" <tyl### [at] pacbellnet> wrote in message
news:38D9E780.19D60849@pacbell.net...

> Besides the Windows .hlp format there are 3 other versions of the docs
> available at the link below - .pdf, .doc, and html. Choose your favorite.
>
> http://www.povray.org/ftp/pub/povray/Official/Docs/

Thanks, Ken--I should have known.....

I've been getting warnings about a damaged help file, lately, and need to
fix it anyway.

May the road rise to you, and your PPS be faster than your typing speed.

--
s.


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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