|
![](/i/fill.gif) |
Can I please have this macro?
Thanks
Nekar
--
#local N=<-20,40,100>;#local K=<20,-40,100>;#local R=seed(0);blob{#while((K-N).
x>0)#local X=N;#local N=N+<rand(R),rand(R),1>/3;#local N=(vlength(N-K)<vlength(
X-K)?N:2*X-N);sphere{<N.y,-N.x,N.z>,1,1 scale .02}sphere{N,1,1 scale.02}sphere{
<-N.x-40,N.y,N.z>1,1 scale.01}sphere{<N.x+40,-N.y,N.z>1,1 scale.01 }#end
pigment{rgbt 1}interior{media{emission <2,4,5>*5}}hollow}// Nekar Xenos
"Chris Huff" <chr### [at] mac com> wrote in message
news:3b053411@news.povray.org...
> Nekar Xenos <j-p### [at] citywalk co za> wrote:
>
> > Does anyone have a macro that could take the co-ordinates of all the
> > points in an object and replace them with blobs?
>
> I've done something like this before...I just used eval_pattern with
> the object pattern to determine if a point was inside the object, and
> if so, placed a blob component at that point.
>
>
> > I've figured that would be quite a good way of making rounded
> > edges. CSG's would probably be a problem, unless there was a macro
> > that could convert CSG's (or anything else) to polygons.
>
> It worked fairly well for rounded text, but if you want just slight
> rounding of edges, you will require a huge number of blob components
> to get smooth results, and the rendering will be quite slow. A better
> bet would be to use macros to produce various primitive shapes, such
> as rounded boxes, cylinders, etc...
> CSG is no problem, though.
>
>
> --
> Christopher James Huff - chr### [at] mac com
> Home Page: http://homepage.mac.com/chrishuff/
> POV-Ray TAG e-mail: chr### [at] povray org
> POV-Ray TAG web site: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |