tags:

views:

30

answers:

0

Hello,

I am writing a program that needs to display a very simple 3D scene. Models are added and removed from the scene based on the user's interaction with the GUI.

Right now, I can add models just fine. My problem is with removal. None of the 3D model classes involved (MeshGeometry3D, GeometryModel3D, Model3DGroup, and ModelVisual3D) seem to have a Name or ID property that I can use. So, if I want to iterate through the list of models, searching for a specific one to modify or remove, I have nothing to go by.

I suppose I could store a reference to each of the models in a Dictionary, and look them up by name that way. Seems messy, though. Does anyone have any ideas?

Thank you.