POV-Ray : Newsgroups : povray.beta-test : [insert menu] prism & parametric Server Time
13 Nov 2024 02:01:18 EST (-0500)
  [insert menu] prism & parametric (Message 1 to 3 of 3)  
From: SciBorg
Subject: [insert menu] prism & parametric
Date: 17 Sep 2001 10:04:31
Message: <3BA602ED.1C5F1F0F@irrwerk.de>
Dear POV-Team !
Great resource, great program, great ... I shut up you allready heard it
a lot. :-)

8) SciBorg

Two small errors to report:
one I've reported to beta 1 (but is still present)

the PRISM out of the insert menu doesn't work ! It should be there with
following small changes. (cubic_spline to linear_spline...)
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]
}
------------------------------------------------------------
similar the inserted PARAMETRIC does not work, it contains a different
syntax  than in doku
corrected version:
------------------------------------------------------------
// parametric object
parametric {
  function{ sin(v)*sin(u) }
  function{ sin(v)*cos(u) }
  function{ cos(v) }
  <0,0>, <2*pi,2*pi>
  contained_by { box{ <-1.5,-1.5,-1.5>, <1.5,1.5,1.5> }}
  accuracy 0.001
  precompute 15 x,y,z // precompute normally gives faster rendering
(<=20)
  // but longer parsing
  pigment {rgb 1}
}
------------------------------------------------------------
which gives just a sphere (more interesting would be a py-orbital like
shape!) like
------------------------------------------------------------
// parametric object
parametric {
  function{ sin(v)*sin(u)*cos(v)^2 }     // x-axis
  function{ cos(v)*cos(v)^2 }            // y-axis
  function{ sin(v)*cos(u)*cos(v)^2 }     // z-axis
  <0,0>, <2*pi,2*pi>
  contained_by { box{ <-0.5,-1.5,-0.5>, <0.5,1.5,0.5> }}
  accuracy 0.001
  precompute 20 x,y,z // precompute normally gives faster rendering
(<=20)
  // but longer parsing
  pigment {rgb 1}
}

------------------------------------------------------------


Post a reply to this message

From: Bob H 
Subject: Re: [insert menu] prism & parametric
Date: 21 Sep 2001 05:56:47
Message: <3bab0edf@news.povray.org>
"SciBorg" <tck### [at] irrwerkde> wrote in message
news:3BA602ED.1C5F1F0F@irrwerk.de...

Hey "SciBorg", I put your electron P orbital (slightly changed) into my
parametric.txt for the Insert Menu along with the original and another too
(total 3 in one).  Also fixed that prism.txt to still use cubic_spline (and
quadratic too).

Hope you don't mind me uploading that for Chris Cason to add, maybe, to the
next beta.  I meant to e-mail you about it and kept getting sidetracked.

Thanks for pointing those out.

Bob H.


Post a reply to this message

From: Chris Cason
Subject: Re: [insert menu] prism & parametric
Date: 21 Sep 2001 06:18:42
Message: <3bab1402@news.povray.org>
"Bob H." <omn### [at] msncom> wrote in message news:3bab0edf@news.povray.org...
> Hope you don't mind me uploading that for Chris Cason to add, maybe, to the
> next beta.  I meant to e-mail you about it and kept getting sidetracked.

FWIW, I'll just point out (to be pedantic:) that I don't maintain the insert
menu stuff at all; I just ship what the pre-beta folks (who did all the hard
work on it) provide me. I assume that they are reading this group and will
make whatever adjustments are necessary.

-- Chris


Post a reply to this message

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