Skip to content

Commit

Permalink
Fix bug in constructing path to mesh files
Browse files Browse the repository at this point in the history
  • Loading branch information
petercorke committed Feb 26, 2020
1 parent c936ac6 commit 7488815
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion @SerialLink/plot3d.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function plot3d(robot, q, varargin)
pth = fileparts(pth);
% peel off the last folder
s = regexp(pth, filesep, 'split');
pth = join(s(1:6), filesep);
pth = join(s(1:end-1), filesep);

% find the path to this specific model
pth = fullfile(pth{1}, 'data/meshes', robot.model3d);
Expand All @@ -142,6 +142,7 @@ function plot3d(robot, q, varargin)
robot.points{i} = P;
robot.faces{i} = F;
fprintf('.');

end
fprintf('\n');
end
Expand Down

0 comments on commit 7488815

Please sign in to comment.