Opened 14 years ago

Closed 14 years ago

#349 closed defect (fixed)

add hole_tags to add_hole_from_polygon

Reported by: hudson Owned by: 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 14 years ago by hudson

  • Owner changed from ole to hudson

comment:2 Changed 14 years ago by hudson

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.