Changeset 6535 for anuga_core/source/anuga/utilities/polygon.py
- Timestamp:
- Mar 17, 2009, 11:06:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/polygon.py
r6534 r6535 188 188 def is_inside_triangle(point, triangle, 189 189 closed=True, 190 rtol=1.0e- 6,191 atol=1.0e- 8,190 rtol=1.0e-12, 191 atol=1.0e-12, 192 192 check_inputs=True, 193 193 verbose=False): … … 228 228 229 229 rtol and atol will determine how close the point has to be to the edge 230 before it is deemed on the edge.230 before it is deemed to be on the edge. 231 231 232 232 """ … … 246 246 if point[1] > max(triangle[:,1]): return False 247 247 248 248 return bool(_is_inside_triangle(point, triangle, int(closed), rtol, atol)) 249 250 251 252 # FIXME (Ole): The rest of this function has been made 253 # obsolete by the C extension 254 249 255 # Start search 250 256 A = triangle[0, :] … … 282 288 Y[0], Y[1], 283 289 rtol, atol) 290 284 291 if res: 285 292 return True 286 293 287 294 return False 288 295 289 296 … … 1233 1240 from polygon_ext import _separate_points_by_polygon 1234 1241 from polygon_ext import _interpolate_polyline 1242 from polygon_ext import _is_inside_triangle 1235 1243 #from polygon_ext import _intersection 1236 1244
Note: See TracChangeset
for help on using the changeset viewer.