Changeset 3057


Ignore:
Timestamp:
Jun 2, 2006, 3:25:39 PM (18 years ago)
Author:
duncan
Message:

adding test to show bug, ticket #81

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/test_mesh.py

    r3052 r3057  
    1515from Numeric import allclose, array
    1616
     17from coordinate_transforms.geo_reference import Geo_reference
    1718from utilities.polygon import is_inside_polygon
    1819
     
    942943        self.failUnless(loners==[0],
    943944                        'FAILED!')
     945
     946    def FIXME_test_mesh_get_boundary_polygon_with_georeferencing(self):
     947     
     948        # test
     949        a = [0.0, 0.0]
     950        b = [4.0, 0.0]
     951        c = [0.0, 4.0]
     952
     953        absolute_points = [a, b, c]
     954        vertices = [[0,1,2]]
    944955       
     956        geo = Geo_reference(56,67,-56)
     957
     958        relative_points = geo.change_points_geo_ref(absolute_points)
     959        #relative_points = absolute_points #uncomment to make test pass!
     960        mesh = Mesh(relative_points, vertices, geo_reference=geo)
     961        boundary_polygon = mesh.get_boundary_polygon()
     962        assert allclose(absolute_points, boundary_polygon)
    945963#-------------------------------------------------------------
    946964if __name__ == "__main__":
Note: See TracChangeset for help on using the changeset viewer.