POV-Ray : Newsgroups : povray.newusers : Prism problem Server Time
6 Sep 2024 10:13:37 EDT (-0400)
  Prism problem (Message 1 to 2 of 2)  
From: Mike Faneros
Subject: Prism problem
Date: 24 May 1998 17:22:59
Message: <35688FB2.95568EBC@whodu.edu>
Can anyone tell me what's wrong with this prism?  I've tried all I know
how to fix it, but pov tells me "too few points."  Any help is
appreciated - i'm still learning how to do these prism things...

prism {
  cubic_spline
  0, .5, 14,
  <.7, 1>, <.8, 1.1>, <1.15, 1.25>, <1.3, 1.1>, <1.3, .9>,
  <1.29, .8>,  <1.95, 2.0>, <1.2, 2.4>,
  <1.3, 2.3>, <1.2, 1.9>, <.9, 2.0>, <.8, 2.1>,
  <1.0, 1.7>, <1.15, 1.25>, <.7, 1>
  rotate -90*x
  texture { pigment { color Red } }
}

See ya...
Mike

Antispam: make whodu.edu->ou.edu


Post a reply to this message

From: Nieminen Mika
Subject: Re: Prism problem
Date: 25 May 1998 11:26:31
Message: <6kc2j7$5rs$2@oz.aussie.org>
Mike Faneros <fan### [at] whoduedu> wrote:
: Can anyone tell me what's wrong with this prism?  I've tried all I know
: how to fix it, but pov tells me "too few points."  Any help is
: appreciated - i'm still learning how to do these prism things...

: prism {
:   cubic_spline

  Section 7.5.2.8 of the povray documentation says:

In addition to the closed point sequence each cubic spline sub-prism needs
two control points to determine the slopes at the start and end of the curve.

:   0, .5, 14,
:   <.7, 1>, <.8, 1.1>, <1.15, 1.25>, <1.3, 1.1>, <1.3, .9>,
:   <1.29, .8>,  <1.95, 2.0>, <1.2, 2.4>,
:   <1.3, 2.3>, <1.2, 1.9>, <.9, 2.0>, <.8, 2.1>,
:   <1.0, 1.7>, <1.15, 1.25>, <.7, 1>

  You need a control point at the start and at the end of the point list.

-- 
                                                              - Warp. -


Post a reply to this message

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