Opened 17 years ago
Closed 16 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 )
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
| Description: | modified (diff) |
|---|
comment:2 Changed 17 years ago by
comment:3 Changed 17 years ago by
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 16 years ago by
| Owner: | changed from ole to James Hudson |
|---|
comment:5 Changed 16 years ago by
| Status: | new → assigned |
|---|
comment:6 Changed 16 years ago by
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 16 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → 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.