POV-Ray : Newsgroups : povray.general : conic sweep prism bug? : Re: conic sweep prism bug? Server Time
16 Nov 2024 01:17:20 EST (-0500)
  Re: conic sweep prism bug?  
From: ReVerSi
Date: 8 Nov 1998 04:04:34
Message: <36455E4E.71B2@t-online.de>
Dan Connelly wrote:
> 

> 
> This is supposed to be a closed truncated pyramid,
> but instead I get an open truncated pyramid and a misplaced
> face.  But please, check for yourself.
> 
> [some code].......

bug or feature?, that is here the question (freely by W. Shakespeare)

fact is, that in case of conic_sweep, you have by no way the freedom in
definition of the corner points of your prism, the docs want to make
believe you.
This all has to be done in a way, that at y = 1 your corner points ought
to have uv coordinates in a range between <-0.5, 0.5> and <0.5, 0.5>,
otherwise the inside of your prism apparently will be turned out and you
will get the open truncated pyramide and the misplaced face, you have
observed.
You should scale your prism afterwards.

Try out this, it works:

//pov code:

prism {linear_spline conic_sweep 1, 0.7, 5
       <-0.5, -0.5>, <0.5, -0.5>, <0.5, 0.5>, <-0.5, 0.5>, <-0.5, -0.5>
       pigment {Blue}
       translate <0, -0.85, 0>
       scale <5, 2, 3>
       rotate <0, 0, 180>
       }

//end of pov code


ReVerSi


Post a reply to this message

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