%close all

figure
hold on
for i = 1:length(conn(:,1))
  idx = find(~isnan(conn(i,:)));
  plot3(pts{1}(conn(i,idx)),pts{2}(conn(i,idx)),pts{3}(conn(i,idx)),'b-');
end
axis equal

if(sym_planes >= 1)
for i = 1:length(conn(:,1))
  idx = find(~isnan(conn(i,:)));
  plot3(pts{1}(conn(i,idx)),-pts{2}(conn(i,idx)),pts{3}(conn(i,idx)),'b-');
end  
end

if(sym_planes == 2)
for i = 1:length(conn(:,1))
  idx = find(~isnan(conn(i,:)));
  plot3(-pts{1}(conn(i,idx)),pts{2}(conn(i,idx)),pts{3}(conn(i,idx)),'b-');
  plot3(-pts{1}(conn(i,idx)),-pts{2}(conn(i,idx)),pts{3}(conn(i,idx)),'b-');
end  
end

clear idx
