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 5599d71 commit faba5b7Copy full SHA for faba5b7
sectionproperties/analysis/section.py
@@ -2177,6 +2177,10 @@ def get_stress_at_point(
2177
for (idx, tri) in enumerate(self.elements):
2178
if tri.point_within_element(pt):
2179
tri_id = idx
2180
+
2181
+ if tri_id is None:
2182
+ raise ValueError(f"The point {pt} is outside of the section boundary.")
2183
2184
tri = self.elements[tri_id]
2185
2186
# get the stess at the point
0 commit comments