% -*- texinfo -*- % @deftypefn {Function File} {[@var{mesh}]} = MSH2Mstructmesh(@var{x},@var{y},@var{region},@var{sides},@var{string}) % % Constructs a structured triangular 2D mesh on a rectangular domain, % and returns a PDEtool-like mesh structure. % % Input: % @itemize @minus % @item @var{x}: vector representing the 1D meshing of the side parallel to x axis. % @item @var{y}: vector representing the 1D meshing of the side parallel to y axis. % @item @var{region}: number assigned to the meshed region. % @item @var{sides}: row vector containing the four numbers assigned to the geometrical edges. % @item @var{string}: (optional) orientation of the diagonal edge of the structured mesh. % Values: 'right', 'left', 'random'. Default is 'right'. % @end itemize % % Output: mesh basic structure, composed of the following fields % @itemize @minus % @item @var{p}: matrix with size 2 times number of mesh point. % @itemize @bullet % @item 1st row: x-coordinates of the points. % @item 2nd row: y-coordinates of the points. % @end itemize % @item @var{e}: matrix with size 7 times number of mesh border edges. % @itemize @bullet % @item 1st row: p-matrix column number of the first edge-vertex. % @item 2nd row: p-matrix column number of the second edge-vertex. % @item 3rd row: not initialized, only for compatibility with standard PDE-tool like mesh. % @item 4th row: not initialized, only for compatibility with standard PDE-tool like mesh. % @item 5th row: number of the geometrical border upon which the referred mesh edge is lying on. % @item 6th row: number of the region to the right of the referred mesh edge. % @item 7th row: number of the region to the left of the referred mesh edge. % @end itemize % @item @var{t}: % @itemize @bullet % @item 1st row: p-matrix column number of the first trg-vertex. % @item 2nd row: p-matrix column number of the second trg-vertex. % @item 3rd row: p-matrix column number of the third trg-vertex. % @item 4th row: number of the region upon which the referred trg is lying on. % @end itemize % @end itemize % % @seealso{MSH2Mgmsh,MSH2Mjoinstructm,MSH2Msubmesh} % @end deftypefn