source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/3dRecon/utils/showWire.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 341 bytes
Line 
1function lines = showWire(v, f, h)
2  if nargin < 3
3    h =1;
4  end
5 
6  figure(h); clf;
7  plot3(v(:,1), v(:,2), v(:,3), '.b');
8  hold on;
9 
10  lines = {};
11  for k = 1:length(f)
12    id = f{k};
13    id = [id id(1)];
14    lines{k} = v(id ,:);
15    l = lines{k};
16    plot3(l(:,1), l(:,2), l(:,3), 'g');
17  end
18  axis vis3d; axis square; axis equal;
Note: See TracBrowser for help on using the repository browser.