Opened 16 years ago
Closed 15 years ago
#305 closed enhancement (fixed)
Add breaklines to high level mesh interface
Reported by: | ole | Owned by: | 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 16 years ago by ole
- Description modified (diff)
comment:2 Changed 16 years ago by ole
comment:3 Changed 16 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 hudson
- Owner changed from ole to hudson
comment:5 Changed 15 years ago by hudson
- Status changed from new to assigned
comment:6 Changed 15 years ago by 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 hudson
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
Will the low level interface "add_points_and_segments" do it? If so, update the manual to explain better.