POV-Ray : Newsgroups : povray.general : POV-Ray Includes - Organisation : Re: POV-Ray Includes - Organisation Server Time
1 Aug 2024 00:18:37 EDT (-0400)
  Re: POV-Ray Includes - Organisation  
From: nemesis
Date: 6 Dec 2006 08:20:01
Message: <web.4576c3216bf4081b3976a8750@news.povray.org>
ingo <ing### [at] tagpovrayorg> wrote:
> #include MMMM  (a library (directory) consisting of 7 includefile
> sharing a lot of code)
>
> object {
>    MMMM.Parametric (
>      function(u,v){R*sin(v)*cos(u)},
>      function(u,v){R*cos(v)},
>      function(u,v){R*sin(v)*sin(u)}
>      <0, FromV(0)>, <pi, 2*pi>,
>      20, 10, ""
>    )
>    pigment {rgb 1}
>    finish{specular 0.3}
>  }


oh!  I'd certainly love proper foo.bar style of accessing containers member
rather than the one in my proposed alias:

#include "foo.inc" #as MMM

object { MMM_Parametric(...) }...

Except i feel the latter should be simpler to implement in the povray parser
with a few rewriting rules...


Post a reply to this message

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