Changeset 12981


Ignore:
Timestamp:
08/10/12 14:30:55 (13 years ago)
Author:
Eric.Larour
Message:

CHG: changing routine names. Getting rid of runme.m file, which
is not needed anymore.

Location:
issm/trunk-jpl/src/m/model/mesh/planet
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/model/mesh/planet/planetmesher.m

    r12913 r12981  
    77%   where md is a @planet object, varargin is a list of options
    88%
    9 % Usage: md=planetmesh(md,'method','mixed','radius',6378000,'angleresol',1);
    10 %        md=planetmesh(md,'method','tria','shape','iso','radius',6378000,'refinement',5);
     9% Usage: md=planetmesher(md,'method','mixed','radius',6378000,'angleresol',1);
     10%        md=planetmesher(md,'method','tria','shape','iso','radius',6378000,'refinement',5);
    1111%
    1212%
  • issm/trunk-jpl/src/m/model/mesh/planet/planetmixedmesh.m

    r12913 r12981  
    8787
    8888md.mesh.elements=quads;
    89 md.x=x;
    90 md.y=y;
    91 md.z=z;
    92 md.r=sqrt(x.^2+y.^2+z.^2);
    93 md.theta=acos(z./r);
    94 md.phi=atan2(y,x);
     89md.mesh.x=x;
     90md.mesh.y=y;
     91md.mesh.z=z;
     92md.mesh.r=sqrt(x.^2+y.^2+z.^2);
     93md.mesh.theta=acos(z./md.mesh.r);
     94md.mesh.phi=atan2(y,x);
    9595
    96 md.mesh.numberofvertices=length(md.x);
     96md.mesh.numberofvertices=length(md.mesh.x);
    9797md.mesh.numberofelements=size(md.mesh.elements,1);
    9898
  • issm/trunk-jpl/src/m/model/mesh/planet/planettrimesh.m

    r12913 r12981  
    66
    77results = sphere_tri(shape,refinement,radius);
    8 md.x=results.vertices(:,1);
    9 md.y=results.vertices(:,2);
    10 md.z=results.vertices(:,3);
     8md.mesh.x=results.vertices(:,1);
     9md.mesh.y=results.vertices(:,2);
     10md.mesh.z=results.vertices(:,3);
    1111md.mesh.elements=results.faces;
    1212
    13 md.r=sqrt(md.x.^2+md.y.^2+md.z.^2);
    14 md.theta=acos(md.z./md.r);
    15 md.phi=atan2(md.y,md.x);
     13md.mesh.r=sqrt(md.mesh.x.^2+md.mesh.y.^2+md.mesh.z.^2);
     14md.mesh.theta=acos(md.mesh.z./md.mesh.r);
     15md.mesh.phi=atan2(md.mesh.y,md.mesh.x);
    1616
    17 md.mesh.numberofvertices=length(md.x);
     17md.mesh.numberofvertices=length(md.mesh.x);
    1818md.mesh.numberofelements=size(md.mesh.elements,1);
    1919
Note: See TracChangeset for help on using the changeset viewer.