Esempio n. 1
0
        public override bool traverseTree(CS_TreeTraversal traversal)
        {
            if (traversal.enterTree(this))  // enter this tree?
            {
                foreach (CS_Stem stem in trunks)
                {
                    stem.traverseTree(traversal);
                }
            }

            return(traversal.leaveTree(this));
        }
Esempio n. 2
0
        public override bool traverseTree(CS_TreeTraversal traversal)
        {
            if (traversal.enterTree(this))  // enter this tree?
            {
                foreach (CS_Stem stem in trunks)
                {
                    stem.traverseTree(traversal);
                }
            }

            return traversal.leaveTree(this);
        }