Quantcast
Viewing all articles
Browse latest Browse all 40524

Using ofNode to build an L-System

yes but when you do joinBranch = ofNode(); in the second iteration the previous joinBranch gets deleted and the so the parent for oldBranch is not valid anymore so the program crashes. this is not java things allocated in the stack get deleted right away. when you do joinBranch.setParent(oldBranch); you are passing a reference to the original but you are responsible to keep that parent alive for the same scope as the child.


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>