Changeset 12981
- Timestamp:
- 08/10/12 14:30:55 (13 years ago)
- 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 7 7 % where md is a @planet object, varargin is a list of options 8 8 % 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); 11 11 % 12 12 % -
issm/trunk-jpl/src/m/model/mesh/planet/planetmixedmesh.m
r12913 r12981 87 87 88 88 md.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);89 md.mesh.x=x; 90 md.mesh.y=y; 91 md.mesh.z=z; 92 md.mesh.r=sqrt(x.^2+y.^2+z.^2); 93 md.mesh.theta=acos(z./md.mesh.r); 94 md.mesh.phi=atan2(y,x); 95 95 96 md.mesh.numberofvertices=length(md. x);96 md.mesh.numberofvertices=length(md.mesh.x); 97 97 md.mesh.numberofelements=size(md.mesh.elements,1); 98 98 -
issm/trunk-jpl/src/m/model/mesh/planet/planettrimesh.m
r12913 r12981 6 6 7 7 results = sphere_tri(shape,refinement,radius); 8 md. x=results.vertices(:,1);9 md. y=results.vertices(:,2);10 md. z=results.vertices(:,3);8 md.mesh.x=results.vertices(:,1); 9 md.mesh.y=results.vertices(:,2); 10 md.mesh.z=results.vertices(:,3); 11 11 md.mesh.elements=results.faces; 12 12 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);13 md.mesh.r=sqrt(md.mesh.x.^2+md.mesh.y.^2+md.mesh.z.^2); 14 md.mesh.theta=acos(md.mesh.z./md.mesh.r); 15 md.mesh.phi=atan2(md.mesh.y,md.mesh.x); 16 16 17 md.mesh.numberofvertices=length(md. x);17 md.mesh.numberofvertices=length(md.mesh.x); 18 18 md.mesh.numberofelements=size(md.mesh.elements,1); 19 19
Note:
See TracChangeset
for help on using the changeset viewer.