Skip to content
Snippets Groups Projects
Commit b502307e authored by Studer Gabriel's avatar Studer Gabriel
Browse files

Update Spatial organizer if necessary when doint a FindWithin

parent 273def3e
Branches
Tags
No related merge requests found
......@@ -812,8 +812,9 @@ TorsionImplP EntityImpl::FindTorsion(const AtomImplPtr& a1,
return TorsionImplP();
}
AtomImplList EntityImpl::FindWithin(const geom::Vec3& pos, Real radius) const
AtomImplList EntityImpl::FindWithin(const geom::Vec3& pos, Real radius)
{
this->UpdateOrganizerIfNeeded();
SpatialAtomOrganizer::ItemList alist = atom_organizer_.FindWithin(pos,radius);
return alist;
}
......
......@@ -160,7 +160,7 @@ public:
void UpdateOrganizer();
AtomImplList FindWithin(const geom::Vec3& pos, Real radius) const;
AtomImplList FindWithin(const geom::Vec3& pos, Real radius);
// use query flag defaults
EntityView Select(const EntityHandle& h, const Query& q) const;
// override query flag defaults with given flags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment