Opened 15 years ago
Closed 15 years ago
#349 closed defect (fixed)
add hole_tags to add_hole_from_polygon
Reported by: | James Hudson | Owned by: | James Hudson |
---|---|---|---|
Priority: | normal | Milestone: | ANUGA enhancements |
Component: | Architecture and API | Version: | |
Severity: | normal | Keywords: | |
Cc: |
Description
Look at this code in mesh_interface.py, in the function add_hole_from_polygon:
# Do interior holes if interior_holes is not None:
for polygon in interior_holes:
m.add_hole_from_polygon(polygon,
geo_reference=poly_geo_reference)
You would need to add this parameter
# Do interior holes if interior_holes is not None:
for polygon in interior_holes:
m.add_hole_from_polygon(polygon,
segment_tags=hole_tags, geo_reference=poly_geo_reference)
and then pass hole_tags into add_hole_from_polygon. This has the same form as the boundary_tags. It's a 2-line fix
Change History (2)
comment:1 Changed 15 years ago by
Owner: | changed from ole to James Hudson |
---|
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.