Ignore:
Timestamp:
Aug 22, 2008, 11:56:30 AM (16 years ago)
Author:
duncan
Message:

update to add_points_and_segments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/documentation/user_manual/anuga_user_manual.tex

    r5672 r5673  
    14681468
    14691469
    1470 The variables \code{points}, \code{vertices} and \code{boundary}
     1470The variables \code{points}, \code{triangles} and \code{boundary}
    14711471represent the data displayed in Figure \ref{fig:simplemesh} as
    14721472follows. The list \code{points} stores the coordinates of the
     
    14981498\end{table}
    14991499
    1500 The list \code{vertices} specifies the triangles that make up the
     1500The list \code{triangles} specifies the triangles that make up the
    15011501mesh. It does this by specifying, for each triangle, the indices
    15021502(the numbers shown in the first column above) that correspond to the
    1503 three points at its vertices, taken in an anti-clockwise order
     1503three points at the triangles vertices, taken in an anti-clockwise order
    15041504around the triangle. Thus, in the example shown in Figure
    1505 \ref{fig:simplemesh}, the variable \code{vertices} contains the
    1506 entries shown in Table \ref{tab:vertices}. The starting point is
     1505\ref{fig:simplemesh}, the variable \code{triangles} contains the
     1506entries shown in Table \ref{tab:triangles}. The starting point is
    15071507arbitrary so triangle $(0,1,3)$ is considered the same as $(1,3,0)$
    15081508and $(3,0,1)$.
     
    15121512  \begin{center}
    15131513    \begin{tabular}{|c|ccc|} \hline
    1514       index & \multicolumn{3}{c|}{\code{vertices}}\\ \hline
     1514      index & \multicolumn{3}{c|}{\code{points}}\\ \hline
    15151515      0 & 0 & 1 & 3\\
    15161516      1 & 1 & 2 & 4\\
     
    15261526  \end{center}
    15271527
    1528   \caption{Vertices for mesh in Figure \protect \ref{fig:simplemesh}}
    1529   \label{tab:vertices}
     1528  \caption{Triangles for mesh in Figure \protect \ref{fig:simplemesh}}
     1529  \label{tab:triangles}
    15301530\end{table}
    15311531
     
    16261626
    16271627This method is used to build the mesh outline. It adds points and
    1628 segments connecting the points.  A tag for each segment can optionally
    1629 be added.
     1628segments connecting the points.  Points is a list of points. Segments
     1629is a list of segments.  Each segment is defined by the start and end
     1630of the line by it's point index, e.g. use \code{segments =
     1631[[0,1],[1,2]]} to make a polyline between points 0, 1 and 2. A tag for
     1632each segment can optionally be added.
    16301633
    16311634\end{methoddesc}
Note: See TracChangeset for help on using the changeset viewer.