From: Sylla Z. <zby...@gm...> - 2013-07-02 08:42:40
|
Hi, I have set a interior holes list: _holes, then I set the argument of function anuga.create_domain_from_regions(..., interior_holes=_holes, ...), but I got some errors: *Traceback (most recent call last):* * File "rundtlake.py", line 23, in <module>* * verbose=True* * File "D:\Python25\lib\site-packages\anuga\__init__.py", line 254, in create_domain_from_regions* * compression=False)* * File "D:\Python25\lib\site-packages\anuga\caching\caching.py", line 376, in cache* * T = my_F(*args, **kwargs) # Built-in 'apply' deprecated in Py3K* * File "D:\Python25\lib\site-packages\anuga\__init__.py", line 292, in _create_domain_from_regions* * verbose=verbose)* * File "D:\Python25\lib\site-packages\anuga\pmesh\mesh_interface.py", line 121, in create_mesh_from_regions* * args, kwargs)* * File "D:\Python25\lib\site-packages\anuga\pmesh\mesh_interface.py", line 236, in _create_mesh_from_regions* * closed = True, verbose = False)* * File "D:\Python25\lib\site-packages\anuga\geometry\polygon.py", line 381, in inside_polygon* * raise Exception, msg* *Exception: Points could not be converted to numeric array* THe order of the hole polygon is counter -clockwise. May someone help me? -- *Best wishes.* *Sylla Zhang,* *Southeast University, PRC. * |