10 Apr
2009
10 Apr
'09
11:45 p.m.
Dealing with the code below, if I try to set the particle's coordinates with the commented version, it produces a Segmentation fault. If I use the create function of the decorator with 2 arguments, no failure. I don't really mind using the 2nd version, just reporting.
Particle *p; IMP::core::XYZDecorator d;
for (IMP::algebra::Sphere3Ds::iterator s = ss.begin(); s != ss.end(); ++s) { p =new Particle(model); d.create(p,s->get_center()); // d.create(p); // d.set_coordinates(s->get_center()); p->add_attribute(radius,s->get_radius(),false); ps.push_back(p); } }