Lsystem f problem in branch

   3108   2   2
User Avatar
Member
289 posts
Joined: July 2005
Offline
Hi Everybody,

I want my branches to start with an empty line. But one you place the f function inside a branch it does not seem to work properly.

Premise: A
rule1: A=&(45)F(5)f(5)F(5)

the first line is correct, but the branch does not what I expected.

Any suggestions please?
A computer is almost human - except that it does not blame its mistakes on another computer.
User Avatar
Member
289 posts
Joined: July 2005
Offline
Has anybody has any idea?

I think it is a bug in the L-system. But I just want to be sure I did not made a mistake.

This is what happens if I use a branch



Here the correct result, but without branching



It seems that the f “ move forward without creating geometry ” is faulty in branches.

Any idea's please?
A computer is almost human - except that it does not blame its mistakes on another computer.
User Avatar
Member
175 posts
Joined: July 2005
Offline
This is strange, when you write: A=&(45)F^fF it seems like the turtle is going back to branch axiom before drawing fF and also fF is getting some different length.
Perhaps it's a bug but it can be some special behaviour of branches, it should be checked in other l-system constructors (like l-studio from www.algorithmicbotany.org).

I'll try to figure it out.
  • Quick Links