On Sep 5, 2009, at 9:24 PM, Keren Lasker wrote:
> hi, > > What is current status with naming of particles? Each particle has a name set by Particle::set_name().
> Lets say I would like to name geometries in gs = > IMP::display::XYZRsGeometry , which are lets say a few spheres. > > there is a set_name function to a specific geometry, but not sure > there is a way to iterate geometries in gs. > > Seems it would have been easier if Geometry::set_name would use the > name of a particle, but I could not find a say to do so anymore .... Currently XYZRsGeometry currently uses the Particle name if the geometry's name is empty (and uses the geometry's name if the name is non-empty). Both types of conventions are useful, depending on the situation (since producing 2000 different entries in the list of objects in Chimera is kind of awkward).
The current behavior is not yet documented as it has been evolving as I go along. If people are happy with the above behavior, I can document it and lock it down...