POV-Ray : Newsgroups : povray.binaries.scene-files : mesh creation macros : Re: mesh creation macros Server Time
2 Sep 2024 16:21:52 EDT (-0400)
  Re: mesh creation macros  
From:
Date: 28 Nov 2001 07:39:11
Message: <pll90ugbknlibau83uadlit68ptreamp0l@4ax.com>
On 28 Nov 2001 07:11:32 -0500, ingo <ing### [at] homenl> wrote:
> If, then I think it should be part of a method that allows a more 
> general input than just splines.

Ok, I try write something about my system. I tried it more general - it could
work with set of points, splines, functions, spline on surface, qurve joined
from any previous one etc.
I just created macros/initializers
  Create_Qurve_From_Spline("Name",Spline)
  Create_Qurve_From_Function("Name",Function)
  Create_Linear_Qurve("Name",Points)
  Create_Joined_Qurve("Name","Qurve1","Qurve2")
end every above have created methods and properties like Get_Name_Length,
Get_Name_Point(S) etc. They were fast becouse they were parsed as ready macros.
So when I called Get_Length("Name") calculated Get_Name_Length was used. The
same I started with surfaces. Surface get any kind of qurve becouse it calls
global methods Get_Point("Name",U). Internally it still uses original function
or spline or set of points or set of any other qurves.

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

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