throw new NodeException("Cannot set root node orientation");
}
+ /**
+ * Get a unique name in the Plant3D model with a given prefix followed by
+ * an underscore and number.
+ */
public String getUniqueName(String prefix) {
Set<String> names = new HashSet<String>();
for (INode node : getChild()) {
continue;
IP3DVisualNode n = (IP3DVisualNode)node;
names.add(n.getName());
+ if (node instanceof P3DParentNode)
+ ((P3DParentNode<?>) node).getComponentNames(names);
}
int i = 1;
while (true) {