sparkChan Posted December 8, 2009 Share Posted December 8, 2009 hi, How can I get the local variable t value in lsystem. for example, I add a variable e named and set the value referencing the channel 'generations' in Values Tap of lsystem. Then I define one of the following rules: B(i) : (t>e)&(i>0) = B(i-1) but I dont' know how it (t>e) works. Thanks flower.hipnc Quote Link to comment Share on other sites More sharing options...
Macha Posted December 9, 2009 Share Posted December 9, 2009 (edited) I tried your example and I can get the variable to work if I change the name to o. Maybe t is reserved for something already? Edited December 9, 2009 by Macha Quote Link to comment Share on other sites More sharing options...
sparkChan Posted December 9, 2009 Author Share Posted December 9, 2009 I tried your example and I can get the variable to work if I change the name to o. Maybe t is reserved for something already? yes, t stands for ' The iteration count', t is not equal to Generations's value,isn't it? Quote Link to comment Share on other sites More sharing options...
Macha Posted December 9, 2009 Share Posted December 9, 2009 Ho I see. Yes, you're right. I tried it with my own example and I can get it to work. I'm not sure what effect you look for so it's a bit hard to figure out if it works properly. But what you need to look out for is to define i in the premise. If you have B(i) somewhere down the line you need to give i an initial value like so: B(0) lsys.hipnc Quote Link to comment Share on other sites More sharing options...
sparkChan Posted December 9, 2009 Author Share Posted December 9, 2009 (edited) Ho I see. Yes, you're right. I tried it with my own example and I can get it to work. I'm not sure what effect you look for so it's a bit hard to figure out if it works properly. But what you need to look out for is to define i in the premise. If you have B(i) somewhere down the line you need to give i an initial value like so: B(0) I just want to find out t, but now I have understood what it means. "Generations'value minus t equals one". seen your sence, I think you studied L-System SOP deeply than me. Can you teach me? Thanks, hehe. Edited December 9, 2009 by sparkChan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.