Changeset 20194
- Timestamp:
- 02/16/16 21:46:38 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/plot/processmesh.js ¶
r19826 r20194 15 15 var x,y,z,elements,is2d,isplanet; 16 16 17 //some checks 17 console.log(md); 18 console.log(md.mesh); 19 console.log(md.mesh.numberofvertices) 20 18 21 if (md.mesh.numberofvertices==0){ 19 22 throw Error('plot error message: mesh is empty'); 20 23 } 21 24 25 22 26 if (md.mesh.numberofvertices==md.mesh.numberofelements){ 23 27 throw Error(['plot error message: the number of elements is the same as the number of nodes...']); 24 28 } 25 26 //special case for mesg 2dvertical27 if (md.mesh.domaintype() === '2Dvertical') return processmesh(md.mesh,options);28 29 //special case for mesh 3dsurface30 if (md.mesh.domaintype() == '3Dsurface') return processmesh(md.mesh,options);31 29 32 30 if (options.getfieldvalue('coord','xy') !== 'latlon'){ -
TabularUnified issm/trunk-jpl/src/m/plot/processmesh.m ¶
r19074 r20194 17 17 %special case for mesg 2dvertical 18 18 if strcmp(domaintype(md.mesh),'2Dvertical'), 19 [x y z elements is2d isplanet] = processmesh(md .mesh,options);19 [x y z elements is2d isplanet] = processmesh(md,options); 20 20 return; 21 21 end … … 23 23 %special case for mesh 3dsurface 24 24 if strcmp(domaintype(md.mesh),'3Dsurface'), 25 [x y z elements is2d isplanet] = processmesh(md .mesh,options);25 [x y z elements is2d isplanet] = processmesh(md,options); 26 26 return; 27 27 end
Note:
See TracChangeset
for help on using the changeset viewer.