POV-Ray : Newsgroups : povray.general : L-Systems in Povray : Re: L-Systems in Povray Server Time
1 Jun 2024 21:00:39 EDT (-0400)
  Re: L-Systems in Povray  
From: Droj
Date: 12 Jul 2023 13:00:00
Message: <web.64aedbb5453cebfc763e4a273b2af915@news.povray.org>
"Droj" <803### [at] drojde> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> > "jr" <cre### [at] gmailcom> wrote:
> > > hi,
> > >
> > > "Bald Eagle" <cre### [at] netscapenet> wrote:
> > > > ...
> > > > I have NO idea what I'm doing, but that gets me a completed render and no
> > > > crashing.
> > >
> > > _neat_.  (and thanks, that'll give me .. encouragement to play a little more
> > > :-))
> > >
> > >
> > > regards, jr.
> >
> > Other changes:
> >
> > #declare BuildRules["X"] = asc("X"); // 88
> >
> > #debug concat( "X = ", str(asc("X"), 0, 0), "\n")
> >
> > #macro MoveRight (T_Pos)
> >  <T_Pos.x + 1, T_Pos.y, T_Pos.z>
> >  //#local T_Pos = <T_Pos.x + 1, T_Pos.y, T_Pos.z>;
> >  //#declare VXY_Arr[Curr_Items] = T_Pos;
> >  //#declare AZZ_Arr[Curr_Items] = AngleZZ;
> >  //#declare Curr_Items = Curr_Items + 1;
> > #end
> >
> >     #case (88)
> >     #local T_Pos = MoveRight (T_Pos);
> >     #break
> >
> >     #else
> >     #break
> >    #end // end switch
> >
> >
> > #declare Axiom = "FFFFX";
> > #declare Rules = dictionary {
> >   ["X"] : "F[-X|][+F|]",
> >  // ["Y"] : "FX-Y"
> > }
> >
> > #declare Iterations = 50;
> >
>
>
>
> >
> > Doesn't get me much, except a few line segments.  Once I have more time to
> > decipher the Big Picture, then it will be easier to make things work.
>
> Hi,
>
> first of all thanks to all of you for your engagement to solve this 'mystery'.
>
> Just one remark: please do not use 'Iterations = 50;'. If the coding works
> properly Povray will produce an amount of data to choke a horse with.
>
> As far as using "X" or "Y" without declaring it is concerned: I used Ingo's
> original code - means vector and angle are not separated - with
>
> #declare Axiom = "X";
> #declare Rules = dictionary{
>   ["X"] : "XFYFX+F+YFXFY-F-XFYFX",
>   ["Y"] : "YFXFY-F-XFYFX+F+YFXFY"
> }
> and it works like a charm (see attachment).
>
> Furthermore I used Ingo's original and added Push and Pop stacks and...
> Povray again complained about (vertices).
> Could it be that Povray hates LIFO arrays <grin>.
>
> Can't wait until Ingo's 'muse with the glass eye' is kissing me - I AM cleanly
> shaven.
>
> Time to investigate further.
>
> Regards
> Droj

Just in case you are curious how lsys3.pov looks like.


Post a reply to this message


Attachments:
Download 'lsys3.png' (149 KB)

Preview of image 'lsys3.png'
lsys3.png


 

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