- Timestamp:
- Aug 22, 2008, 11:56:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/anuga_user_manual.tex
r5672 r5673 1468 1468 1469 1469 1470 The variables \code{points}, \code{ vertices} and \code{boundary}1470 The variables \code{points}, \code{triangles} and \code{boundary} 1471 1471 represent the data displayed in Figure \ref{fig:simplemesh} as 1472 1472 follows. The list \code{points} stores the coordinates of the … … 1498 1498 \end{table} 1499 1499 1500 The list \code{ vertices} specifies the triangles that make up the1500 The list \code{triangles} specifies the triangles that make up the 1501 1501 mesh. It does this by specifying, for each triangle, the indices 1502 1502 (the numbers shown in the first column above) that correspond to the 1503 three points at its vertices, taken in an anti-clockwise order1503 three points at the triangles vertices, taken in an anti-clockwise order 1504 1504 around the triangle. Thus, in the example shown in Figure 1505 \ref{fig:simplemesh}, the variable \code{ vertices} contains the1506 entries shown in Table \ref{tab: vertices}. The starting point is1505 \ref{fig:simplemesh}, the variable \code{triangles} contains the 1506 entries shown in Table \ref{tab:triangles}. The starting point is 1507 1507 arbitrary so triangle $(0,1,3)$ is considered the same as $(1,3,0)$ 1508 1508 and $(3,0,1)$. … … 1512 1512 \begin{center} 1513 1513 \begin{tabular}{|c|ccc|} \hline 1514 index & \multicolumn{3}{c|}{\code{ vertices}}\\ \hline1514 index & \multicolumn{3}{c|}{\code{points}}\\ \hline 1515 1515 0 & 0 & 1 & 3\\ 1516 1516 1 & 1 & 2 & 4\\ … … 1526 1526 \end{center} 1527 1527 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} 1530 1530 \end{table} 1531 1531 … … 1626 1626 1627 1627 This 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. 1628 segments connecting the points. Points is a list of points. Segments 1629 is a list of segments. Each segment is defined by the start and end 1630 of 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 1632 each segment can optionally be added. 1630 1633 1631 1634 \end{methoddesc}
Note: See TracChangeset
for help on using the changeset viewer.