POV-Ray : Newsgroups : povray.beta-test : [doc?] Prism in INSERT-Menu Server Time
31 Jul 2024 08:31:14 EDT (-0400)
  [doc?] Prism in INSERT-Menu (Message 1 to 1 of 1)  
From: SciBorg
Subject: [doc?] Prism in INSERT-Menu
Date: 7 Sep 2001 03:42:58
Message: <3B987A81.C8011D80@irrwerk.de>
It's a little bug left from 3.1 :-)

the standard prism from the INSERT-menu does not parse !!
-------------------------------------------------
// extrude a closed 2-D shape along an axis
prism {
  linear_sweep // or conic_sweep for tapering to a point
  cubic_spline // linear_spline | quadratic_spline | cubic_spline
  -0.5,        // height 1
   0.5,        // height 2
  10,          // number of points
  // the <u,v> points
  < 0.2, -1.0>, < 0.2,  0.2>, < 1.0, -0.2>, < 1.0,  0.2>, < 0.2,  1.0>,
  <-0.2,  1.0>, <-1.0,  0.2>, <-1.0, -0.2>, <-0.2,  0.2>, <-0.2, -1.0>
  // [open]
  // [sturm]
}
------------------------------------------------------
it should be linear_spline, all others fail.
bezier_spline option is missing

The corrected version:
-------------------------------------------------
// extrude a closed 2-D shape along an axis
prism {
  linear_sweep // or conic_sweep for tapering to a point
  linear_spline // linear_spline | quadratic_spline | cubic_spline |
bezier_spline
  -0.5,        // height 1
   0.5,        // height 2
  10,          // number of points
  // the <u,v> points
  < 0.2, -1.0>, < 0.2,  0.2>, < 1.0, -0.2>, < 1.0,  0.2>, < 0.2,  1.0>,
  <-0.2,  1.0>, <-1.0,  0.2>, <-1.0, -0.2>, <-0.2,  0.2>, <-0.2, -1.0>
  // [open]
  // [sturm]
}
------------------------------------------------------
8)  SciBorg

_____________________________________________
It's great ! Thanks to all POV-Creators !


Post a reply to this message

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