POV-Ray : Newsgroups : povray.newusers : my first project - difference distortion Server Time
13 Nov 2024 20:32:15 EST (-0500)
  my first project - difference distortion (Message 1 to 3 of 3)  
From: Peter Ketting
Subject: my first project - difference distortion
Date: 15 Jun 2000 10:54:30
Message: <3948ee26@news.povray.org>
To whoever might feel generous enough to assist me,

I just started a project in POVRay, using just a text editor and heaps
of paper as my modeling tool. However, I've come to the following
obstacle...

I need to cut out a section from the side of a shape, which would
result in the shape having a solid border around an indented part.
I do this by using the exact same shape (union) scale it slightly and
using it as a "cutter". My code looks as follows:

difference {
        union {
         box { <0, 0, 0>, <4, 4, 14> }
                box { <0, 0, 0>, <6, 4, 14> rotate <0, 0, 25> translate
<3.9, 0, 0> }
        }
        box { <0, 0, 0>, <4, 4, 1> scale <0.9, 0.9, 1> translate <0.3,
0.3, -0.875> }
        box { <0, 0, 0>, <6, 4, 1> scale <0.9, 0.9, 1> rotate <0, 0, 25>
translate <4.1, 0.3, -0.875> }
}

It does work, however, it leaves alot of distortion where the two
"cutting" boxes overlap. I have tried to make them a seperate object
as a union, and then use them, but it does not get rid of the junk.
Also, I have tried differencing the two boxes seperatly ( e.g.
difference { difference { union { box {} box {} } box {} } box {} }),
but nothing changes.

Using merge instead of union anywhere does not change things either,
and I am not sure about the difference between them. Anyone have
any suggestions for a confused POVRay beginner?

Best Wishes,
Peter


Post a reply to this message

From: Markus Becker
Subject: Re: my first project - difference distortion
Date: 15 Jun 2000 11:13:46
Message: <3948F3BB.D0300B4A@student.uni-siegen.de>
Peter Ketting wrote:
> 

> It does work, however, it leaves alot of distortion where the two
> "cutting" boxes overlap. I have tried to make them a seperate object

Coincident surface problem, I guess.

Markus


Post a reply to this message

From: Warp
Subject: Re: my first project - difference distortion
Date: 15 Jun 2000 13:17:20
Message: <39490f9e@news.povray.org>
http://www.students.tut.fi/~warp/povVFAQ/languageVFAQ.html#blackspots

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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