POV-Ray : Newsgroups : povray.binaries.images : CSG Server Time
20 Nov 2024 12:40:06 EST (-0500)
  CSG (Message 1 to 3 of 3)  
From: Artis
Subject: CSG
Date: 20 Aug 2001 12:22:58
Message: <3b813962@news.povray.org>
I'm trying to make a room with CSG - I'm cutting out 2 boxes of one -
bigger - here are two test pictures with the sources - maybe someone can
help.

The source for "test1.jpg"
#declare room = difference
{
  box
  {
    <-2.100, -1.300, +1.600>
    <+2.100, +1.300, -1.600>
  }

  box
  {
    <-2.000, -1.200, +1.500>
    <+2.000, +1.200, -1.000>
  }

  box
  {
    <-2.000, -1.200, +1.500>
    <+1.000, +1.200, -1.500>
  }
}

And the source for "test2.jpg"
#declare room = difference
{
  box
  {
    <-2.100, -1.300, +1.600>
    <+2.100, +1.300, -1.600>
  }

  box
  {
    <-2.000, -1.200, +1.500>
    <+2.000, +1.200, -1.000>
  }

  box
  {
    <-2.000, -1.200, -1.000>
    <+1.000, +1.200, -1.500>
  }
}


Post a reply to this message


Attachments:
Download 'test2.jpg' (30 KB) Download 'test1.jpg' (13 KB)

Preview of image 'test2.jpg'
test2.jpg

Preview of image 'test1.jpg'
test1.jpg


 

From: Warp
Subject: Re: CSG
Date: 20 Aug 2001 14:52:36
Message: <3b815c74@news.povray.org>
http://www.students.tut.fi/~warp/povVFAQ/languageVFAQ.html#blackspots

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Y
Subject: Re: CSG
Date: 20 Aug 2001 17:05:25
Message: <3b817b95$1@news.povray.org>
"Artis"  wrote
> I'm trying to make a room with CSG - I'm cutting out 2 boxes of one -
> bigger - here are two test pictures with the sources - maybe someone can
> help.
>
 Looks like a 'coincident surfaces problem' and I see Warp has
directed you to his site.  You will find a lot of useful info here
and answers to many common problems. Very useful site.
--
Y


Post a reply to this message

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