Opened 17 years ago

Closed 15 years ago

#305 closed enhancement (fixed)

Add breaklines to high level mesh interface

Reported by: ole Owned by: James Hudson
Priority: normal Milestone: ANUGA Flood Modelling Capability
Component: Functionality and features Version:
Severity: normal Keywords:
Cc:

Description (last modified by ole)

Augment create_mesh_from_regions to include keyword argument:

breaklines=<list of polylines>

Issues:

  • Does polyline have to connect to other lines
  • What if polyline is tiny
  • What happens if polyline goes outside bounding polygon?

Change History (7)

comment:1 Changed 17 years ago by ole

Description: modified (diff)

comment:2 Changed 17 years ago by ole

Will the low level interface "add_points_and_segments" do it? If so, update the manual to explain better.

comment:3 Changed 17 years ago by ole

By the way - the poly's should not be closed and this code should check for this and possibly remove one duplicate end points.

comment:4 Changed 15 years ago by James Hudson

Owner: changed from ole to James Hudson

comment:5 Changed 15 years ago by James Hudson

Status: newassigned

comment:6 Changed 15 years ago by James Hudson

New interface has been added. create_mesh_from_regions can take a list of breakline polygons, like so:

create_mesh_from_regions(..., breaklines = [east+1000,north+2000], [west,south?, read_polygon('shallow.csv')]))

comment:7 Changed 15 years ago by James Hudson

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.