MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / pruneInvalidSelection

Method pruneInvalidSelection

App/interaction/picking/PickingSystem.cpp:174–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174void PickingSystem::pruneInvalidSelection() const {
175 if (atomStorage == nullptr || selectedAtomIds.empty()) {
176 return;
177 }
178
179 for (auto it = selectedAtomIds.begin(); it != selectedAtomIds.end();) {
180 if (!atomStorage->containsAtomId(*it)) {
181 it = selectedAtomIds.erase(it);
182 }
183 else {
184 ++it;
185 }
186 }
187}
188
189// Ray casting алгоритм для point-in-polygon
190template <typename T> bool PickingSystem::pointInPolygon(const T& point, std::span<T> polygon) {

Callers

nothing calls this directly

Calls 2

containsAtomIdMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected