Skip to content

Commit b879405

Browse files
author
Steven Williams
committed
added condition for structure to getVertices
1 parent 2baaf83 commit b879405

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

getVertices.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@
4545
vertices = userdata.surface.triRep.X;
4646
elseif isa(userdata.surface.triRep, 'triangulation')
4747
vertices = userdata.surface.triRep.Points;
48+
elseif isa(userdata.surface.triRep, 'struct')
49+
vertices = userdata.surface.triRep.X;
4850
else
49-
error('OPENEP/getVertices: userdata.surface.TriRep should be a TriRep or a triangulation object')
51+
error('OPENEP/getVertices: userdata.surface.TriRep should be a Structure, TriRep or a triangulation object')
5052
end
5153
[~, isVertUsed] = repack(getMesh(userdata));
5254

0 commit comments

Comments
 (0)