Ticket #349 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

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

Changed 7 years ago by hudson

  • owner changed from ole to hudson

Changed 7 years ago by hudson

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