forked from dmkaplan2000/openMA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdetool_getset_mesh.m
41 lines (35 loc) · 1.15 KB
/
pdetool_getset_mesh.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
function varargout = pdetool_getset_mesh(pf,p,e,t)
% PDETOOL_GETSETMESH - gets or sets the current triangular mesh geometry
% of the pde domain.
%
% Usage: [p,e,t] = pdetool_getset_mesh(pf)
% Usage: pdetool_getset_mesh(pf,p,e,t)
%
% where pf is the handle of the pdetool figure.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% $Id: pdetool_getset_mesh.m 70 2007-02-22 02:24:34Z dmk $
%
% Copyright (C) 2005 David M. Kaplan
% Licence: GPL (Gnu Public License)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
h=findobj(get(pf,'Children'),'flat','Tag','PDEMeshMenu');
if nargin == 1
p=get(findobj(get(h,'Children'),'flat','Tag','PDEInitMesh'),...
'UserData');
e=get(findobj(get(h,'Children'),'flat','Tag','PDERefine'),...
'UserData');
t=get(findobj(get(h,'Children'),'flat','Tag','PDEMeshParam'),...
'UserData');
varargout = {p,e,t};
else
set(findobj(get(h,'Children'),'flat','Tag','PDEInitMesh'),...
'UserData',p);
set(findobj(get(h,'Children'),'flat','Tag','PDERefine'),...
'UserData',e);
set(findobj(get(h,'Children'),'flat','Tag','PDEMeshParam'),...
'UserData',t);
pdetool( 'meshmode' )
end