Skip to content

Commit

Permalink
CHG: do not extrude lat/lon if undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMorlighem committed Jun 24, 2024
1 parent 938aaa9 commit fe118e0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/m/classes/model.m
Original file line number Diff line number Diff line change
Expand Up @@ -1196,9 +1196,13 @@ function disp(self) % {{{
md.mesh.vertexonboundary=project3d(md,'vector',md.mesh.vertexonboundary,'type','node');

%lat long
md.mesh.lat=project3d(md,'vector',md.mesh.lat,'type','node');
md.mesh.long=project3d(md,'vector',md.mesh.long,'type','node');
md.mesh.scale_factor=project3d(md,'vector',md.mesh.scale_factor,'type','node');
if numel(md.mesh.lat)>1
md.mesh.lat=project3d(md,'vector',md.mesh.lat,'type','node');
md.mesh.long=project3d(md,'vector',md.mesh.long,'type','node');
end
if numel(md.mesh.scale_factor)>1
md.mesh.scale_factor=project3d(md,'vector',md.mesh.scale_factor,'type','node');
end

md.geometry=extrude(md.geometry,md);
md.friction = extrude(md.friction,md);
Expand Down

0 comments on commit fe118e0

Please sign in to comment.