mir->next = mirrors;
mirrors = mir;
- node = new FlatMirror;
- node->wplane = mir->wplane;
- node->next = planes;
+ // also add a node to the mirror plane matching list
+ FlatMirror *m = new FlatMirror;
+ m->wplane = mir->wplane;
+ m->next = planes;
planes = node;
mir->objects.push_back(obj);
objmirror[obj] = mir; // associate with object
++num_mirrors;
} else {
+ node->objects.push_back(obj);
delete mir;
}
}