POV-Ray : Newsgroups : povray.newusers : CSG Problem... please help : Re: CSG Problem... please help Server Time
31 Jul 2024 00:35:08 EDT (-0400)
  Re: CSG Problem... please help  
From:
Date: 22 Apr 2003 18:59:38
Message: <3ea5c95a$1@news.povray.org>
Hi Bob,

the black spots are a typical consequence of coincident surfaces -- POV-
Ray can't decide which surface comes first: the surface of the box or the
surface of the BeveledEdge. See "3.3.6.1 Co-incident Surfaces" in the
manual. So you have to use a "bigger knive"; if you replace your points
of the beveling prism by

    <-1.01,-1.01>, <-1.01,.76>, <.76,-1.01>, <-1.01,-1.01>

(and put the "}" before the "//"!), the coincident surfaces are gone.
But there is an even bigger and much easier "knife":

    #declare BeveledEdge = plane { <1, 0, 1>, 0 translate -0.25*x }

Easy, isn't it? (This is the "cutting plane" of your prism.)
Now look closely at the beveled circle: the intersection of cylinder and
cone is ... a cone! So you could use

    #declare BeveledCircle = cone { <7, 7, 0.75>, 7, <7, 7, 0>, 6.25 }

This is faster and much easier. If you want a partial bevel, i. e. a
cylindrical part plus beveled part like this (use a non-proportional
font to look at this ASCII-picture):

     /""""""\
    /        \
    !        !
    !        !
    +--------+

then use

    union { cylinder {...} cone {...} }

because union is faster than merge, intersection and difference.
For very complicated beveled shapes you could use my "Brett.inc": see
the thread "Round/bevel: Include file" at povray.binaries.scene-files,
started on 23rd January 2003. Please read *all* my posts in this thread,
there are some corrections and you will also find a tutorial and a "test
arena" for experimentation.

Have fun!

   Sputnik

--
-------------------------------------

e-mail: fr### [at] computermuseumfh-kielde
-------------------------------------


Post a reply to this message

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