Changeset 6268
- Timestamp:
- Feb 4, 2009, 11:29:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/alpha_shape/alpha_shape.py
r6174 r6268 288 288 zeroind = [k for k in range(len(denom)) if \ 289 289 (denom[k]< EPSILON and denom[k] > -EPSILON)] 290 try: 290 291 if num.alltrue(denom != 0.0): 291 292 dx = num.divide_safe(y31*dist21 - y21*dist31,denom) 292 293 dy = num.divide_safe(x21*dist31 - x31*dist21,denom) 293 e xcept ZeroDivisionError:294 else: 294 295 raise AlphaError 295 296
Note: See TracChangeset
for help on using the changeset viewer.