POV-Ray : Newsgroups : povray.general : Odd error with Prisms Server Time
15 Nov 2024 11:17:21 EST (-0500)
  Odd error with Prisms (Message 1 to 4 of 4)  
From: Stephen R  Phillips
Subject: Odd error with Prisms
Date: 31 Aug 2004 19:09:22
Message: <Xns9556C1B5FCB5Ecybermans.pov.posts.@203.29.75.35>
Code
------------------------------
   #local XS=6500/258;
   #local YS=-6500/258;
   prism
   {  conic_sweep
      cubic_spline
      0.0769,
      1.0000,
      15,
      < 93*XS, 6*YS>,   <74*XS, -9*YS>,   <46*XS, -17*YS>,  <-7*XS, -
19*YS>,
      <-80*XS,-10*YS>,  <-150*XS, 3*YS>,  <-171*XS, 7*YS>,  <-165*XS, 
9*YS>,
      <-138*XS, 11*YS>, <-41*XS, 7*YS>,   <-10*XS, 20*YS>,  <30*XS, 19*YS>,
      <68*XS, 16*YS>,   <90*XS, 11*YS>,   < 93*XS, 6*YS>
      rotate x*90
      translate x
      scale <1, 16.79124689, 1>
      texture { BLUE_F }
   }
------------------------------
I am being told there are too few points in this prism? As far as I can 
tell I have exactly 15. Am I missing something with prisms? (like a clue 
maybe?)


Post a reply to this message

From: Slime
Subject: Re: Odd error with Prisms
Date: 31 Aug 2004 19:16:59
Message: <413506eb$1@news.povray.org>
> I am being told there are too few points in this prism? As far as I can
> tell I have exactly 15. Am I missing something with prisms? (like a clue
> maybe?)

When you use a cubic_spline for a prism, the second vector in the list must
match the second to last vector in the list. (For a smooth transition all
the way around, the first vector should match the third-to-last vector and
the third vector should match the last vector, also.)

For more information on your exact problem see "2.3.1.3.1  Teaching An Old
Spline New Tricks" in the documentation.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Stephen R  Phillips
Subject: Re: Odd error with Prisms
Date: 31 Aug 2004 19:22:35
Message: <Xns9556C3F3C15Bcybermans.pov.posts.@203.29.75.35>
"Slime" <fak### [at] emailaddress> wrote in news:413506eb$1@news.povray.org:

> When you use a cubic_spline for a prism, the second vector in the list
> must match the second to last vector in the list. (For a smooth
> transition all the way around, the first vector should match the
> third-to-last vector and the third vector should match the last
> vector, also.) 
> 
Argh.. gotcha mumble mumble

> For more information on your exact problem see "2.3.1.3.1  Teaching An
> Old Spline New Tricks" in the documentation.

Thanks I appreciate not having to beat a dead dog :)

Stephen


Post a reply to this message

From: Jeremy M  Praay
Subject: Re: Odd error with Prisms
Date: 1 Sep 2004 21:41:05
Message: <41367a31$1@news.povray.org>
"Slime" <fak### [at] emailaddress> wrote in message
news:413506eb$1@news.povray.org...
...
>... (For a smooth transition all
> the way around, the first vector should match the third-to-last vector and
> the third vector should match the last vector, also.)
>

That's good to know as well.  I suppose it makes perfect sense now that I
really think about it, but I guess I never really thought about it before,
and would generally just try to hide the beginning and ending somewhere not
visible.

I feel slightly smarter now.

-- 
Jeremy
www.beantoad.com


Post a reply to this message

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