|
![](/i/fill.gif) |
wrote:
> Here is proposition ...
... IC_Sor() macro
My proposition is to add two keywords to library.
#declare IC_Open=yes;
#declare IC_Close=no;
and then using new type of spline I posted in
http://news.povray.org/20p1du0a7ts1bcl84ikoae1ksfnksob9bg%404ax.com
making sor equivalent is pretty simple:
#macro IC_Sor(Array,Open)
#local f_sor=sor_spline(Array);
#if(Open=IC_Close)
IC_Intersection3(
#end
function{f_sphere(x,0,z,f_sor(y))}
#if(Open=IC_Close)
,IC_Plane(y,Array[dimension_size(Array,1)-2].v)
,IC_Plane(-y,-Array[1].v))
#end
#end
#macro IC_BSor(Array,Open)
IC_Sor(Array,Open),
sor{
#local N=dimension_size(Array,1);
N
#local n=0;
#while(n<N)
Array[n]
#local n=n+1;
#end
}
#end
Now I'll start rounded version to preserve linear distance to shape.
I hope it will be possible :-)
ABX
Post a reply to this message
|
![](/i/fill.gif) |