+ // merge scn into this scene, leaving scn empty and safe to destroy
+ bool merge(Scene *scn);
+
+ void add_object(Object *obj);
+ bool remove_object(Object *obj);
+ bool have_object(Object *obj) const;
+
+ void add_mesh(Mesh *m);
+ bool remove_mesh(Mesh *m);
+ bool have_mesh(Mesh *m) const;
+
+ void add_node(SceneNode *n);
+ bool remove_node(SceneNode *n);
+ bool have_node(SceneNode *n) const;
+
+ /* find and remove all nodes whose names match the regexp
+ * XXX at the moment this has the effect of flattening the hierarchy in the
+ * result scene. If we ever need verbatim extraction of whole subtrees we'll
+ * need to change the algorithm.
+ */
+ Scene *extract_nodes(const char *qstr);
+
+ /* bake all node transformations to their respective meshes and make the
+ * node transformations identity.
+ * XXX this assumes no mesh is shared by two nodes.
+ */
+ void apply_xform();
+