Changeset 7700
- Timestamp:
- Apr 29, 2010, 11:11:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/fit_interpolate/search_functions.py
r7276 r7700 8 8 import time 9 9 10 from anuga.utilities.polygon import is_inside_triangle 10 from anuga.utilities import compile 11 if compile.can_use_C_extension('polygon_ext.c'): 12 # Underlying C implementations can be accessed 13 from polygon_ext import _is_inside_triangle 14 15 #from anuga.utilities.polygon import is_inside_triangle 11 16 from anuga.utilities.numerical_tools import get_machine_precision 12 17 from anuga.config import max_float … … 105 110 # tri is a list of verts (x, y), representing a tringle 106 111 # Find triangle that contains x (if any) and interpolate 107 112 108 113 # Input check disabled to speed things up. 109 if is_inside_triangle(x, tri, 110 closed=True, 111 check_inputs=False): 114 if _is_inside_triangle(x, tri, 115 int(True), 1.0e-12, 1.0e-12): 112 116 113 117 n0, n1, n2 = tri_verts_norms[1]
Note: See TracChangeset
for help on using the changeset viewer.