We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f5518e commit cd8a5e1Copy full SHA for cd8a5e1
src/sofa/collisionAlgorithm/operations/ContainsPoint.h
@@ -56,6 +56,13 @@ class Operation
56
template <typename PROX>
57
Result containsPoint(const type::Vec3& P, const typename std::shared_ptr<PROX>& prox)
58
{
59
+ if (!prox)
60
+ {
61
+ msg_warning("ContainsPointInProximity") << "Null proximity pointer in containsPoint"
62
+ << "Operation is disabled; returning false";
63
+ return false;
64
+ }
65
+
66
auto elem = prox->element();
67
auto containsPointInElem =
68
sofa::collisionAlgorithm::Operations::ContainsPointInElement::Operation::get(elem);
0 commit comments