function show_post(p,c)
% display a geometric figure defined by points, p, in 
% homogeneous coordinates and connectivity, c, where
%   p(i,j):  i=point; j=coord (1=x,2=y,3=z,4=h)
%   c(i):    i=point (value>
%
% adapted from AE4375 gatech.edu
axis('square');
maxp=max(p);
minp=min(p);
axis([minp(1),maxp(1),minp(2),maxp(2)])
%
maxc=length(c)-1;
hold on;
i=2;
j=2;
x(1)=p(1,1);
y(1)=p(1,2);
while i <= maxc
   while c(i)>0 & i <= maxc
      x(j)=p(c(i),1);
      y(j)=p(c(i),2);
      j=j+1;
      i=i+1;
   end;
   plot(x,y)
   x=[]; y=[];
   x(1)=p(-c(i),1);
   y(1)=p(-c(i),2);
   j=2;
   i=i+1;
end;
hold off;
points_post(p)
