POV-Ray : Newsgroups : povray.binaries.images : CSG problem : Re: CSG problem Server Time
18 Aug 2024 08:24:00 EDT (-0400)
  Re: CSG problem  
From: Nekar Xenos
Date: 21 May 2001 07:58:59
Message: <3b090303@news.povray.org>
I don't know if it's a bug. But if you take a look at the code under
povray.text.scene-files you'll see  there is a section I marked out that doesn't
want to cut off the edge. I've checked the placement and it is in the right
place so I must be missing something.

--
#local N=<-20,40,100>;#local K=<20,-40,100>;#local R=seed(0);blob{#while((K-N).
x>0)#local X=N;#local N=N+<rand(R),rand(R),1>/3;#local N=(vlength(N-K)<vlength(
X-K)?N:2*X-N);sphere{<N.y,-N.x,N.z>,1,1 scale .02}sphere{N,1,1 scale.02}sphere{
<-N.x-40,N.y,N.z>1,1 scale.01}sphere{<N.x+40,-N.y,N.z>1,1 scale.01 }#end
pigment{rgbt 1}interior{media{emission <2,4,5>*5}}hollow}// Nekar Xenos


"Christoph Hormann" <chr### [at] gmxde> wrote in message
news:3B08FD41.74319130@gmx.de...
>
>
> Nekar Xenos wrote:
> >
> > I'm having trouble with this CSG.
> > I can't seem to cut off the sharp edge of the inner part of this letter 'c'.
> > The source is posted under p.t.s-f.
> > Help will be appreciated.
> >
>
> Sorry, but i don't understand what exactly you are having problems with.
>
> If you want perfectly smooth edges, you will have to use some
> trigonometry, it usually helps to calculate things in the 2D case by
> drawing the cross section on paper...
>
> Christoph
>
> --
> Christoph Hormann <chr### [at] gmxde>
> IsoWood include, radiosity tutorial, TransSkin and other
> things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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