Changeset 3114


Ignore:
Timestamp:
Jun 8, 2006, 12:18:34 PM (19 years ago)
Author:
ole
Message:

Added FAQ about tagging of interior polygons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/user_manual/anuga_user_manual.tex

    r3111 r3114  
    26432643you need a fine mesh over regions where the DEM changes rapidly, and other areas of significant interest, such as the coast.
    26442644
     2645
     2646\subsubsection{How do I tag interior polygons?}
     2647At the moment create_mesh_from_regions does not allow interior polygons
     2648with symbolict tags. If tags are needed, the interior polygons must be
     2649created subsequently. For example, given a filename of polygons representing
     2650solid walls (in Arc Ungenerate format) can be tagged as such using the code
     2651snippet:
     2652\begin{verbatim}
     2653  # Create mesh outline with tags
     2654  mesh = create_mesh_from_regions(bounding_polygon,
     2655                                  boundary_tags=boundary_tags)
     2656  # Add buildings outlines with tags set to 'wall'. This would typically
     2657  # bind to a Reflective boundary
     2658  mesh.import_ungenerate_file(buildings_filename, tag='wall')
     2659
     2660  # Generate and write mesh to file
     2661  mesh.generate_mesh(maximum_triangle_area=max_area)                 
     2662  mesh.export_mesh_file(mesh_filename)
     2663\end{verbatim}
     2664
     2665Note that a mesh object is returned from \code{create_mesh_from_regions}
     2666when file name is omitted.
     2667
    26452668\subsubsection{How often should I store the output?}
    26462669This will depend on what you are trying to answer with your model and how much memory you have available on your machine. If you need
Note: See TracChangeset for help on using the changeset viewer.