scene.spad line 2200 [edit on github]
Associates points or nodes in Scene structure with names (or a hierarchy of names). The aim is, where a point or node is used in several different constructions, it only needs to be specified once.
addNode!(n, ptName, sc) adds a scene node.
addPoints!(n, ptName, pts) adds a points node.
findNode(n, ptName) finds a scene node
findPoint(n, ptName) find the point associated with a given string.
getNames(n) returns a list of names for this node
isNodeBranch?(n) returns true if this is a branch.
isNodeLeaf?(n) returns true if this is a leaf which holds Scene nodes.
isPointLeaf?(n) returns true if this is a pt node, that is, if this node contains points
namedBranch(chin, nmin) constructs a branch in the tree structure
namedPoints(ptin, nmin) constructs a list of named points.
namedPoints(scin, nmin) constructs a list of named nodes.
toString(n) returns string representation for debug purposes.