POV-Ray : Newsgroups : povray.text.scene-files : Re: Announce: IsoCSG include file 0.2.1 : Re: Announce: IsoCSG include file 0.2.1 Server Time
29 Jul 2024 10:17:30 EDT (-0400)
  Re: Announce: IsoCSG include file 0.2.1  
From:
Date: 2 May 2002 03:21:42
Message: <4mp1du4obelntvstdua4foq43q6n1tjgeu@4ax.com>

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

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