Changeset 8033
- Timestamp:
- Oct 10, 2010, 5:15:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/structures/inlet.py
r8003 r8033 1 from anuga.geometry.polygon import inside_polygon, is_inside_polygon 1 from anuga.geometry.polygon import inside_polygon, is_inside_polygon, polygon_overlap 2 2 from anuga.config import velocity_protection, g 3 3 import math … … 27 27 bounding_polygon = self.domain_bounding_polygon 28 28 domain_centroids = self.domain.get_centroid_coordinates(absolute=True) 29 29 vertex_coordinates = self.domain.get_vertex_coordinates() 30 30 31 31 # Check that polygon lies within the mesh. … … 40 40 assert is_inside_polygon(point, bounding_polygon), msg 41 41 42 43 self.triangle_indices= inside_polygon(domain_centroids, self.polygon, verbose=self.verbose)42 self.triangle_indices = polygon_overlap(vertex_coordinates, self.polygon) 43 #self.triangle_indices_cen = inside_polygon(domain_centroids, self.polygon, verbose=self.verbose) 44 44 45 45 if len(self.triangle_indices) == 0: … … 49 49 50 50 self.enquiry_index = self.domain.get_triangle_containing_point(self.enquiry_pt) 51 52 51 53 52
Note: See TracChangeset
for help on using the changeset viewer.