Main Page   Compound List   File List   Compound Members   File Members  

r2p.c

Go to the documentation of this file.
00001 /*       Rays 2 Polyhedron
00002  */
00003 
00004 #include <stdio.h>
00005 #include <polylib/polylib.h>
00006 
00007 int main() {
00008         
00009   Matrix *R;
00010   Polyhedron *P; 
00011   
00012   R = Matrix_Read();
00013   if(R->NbColumns < 2) {
00014     printf("Wrong input: %d columns\n", R->NbColumns );
00015     Matrix_Free(R);
00016     exit(1);
00017   }
00018   P = Rays2Polyhedron(R,200);
00019   Matrix_Free(R);
00020   Polyhedron_Print(stdout,P_VALUE_FMT,P);  
00021   Domain_Free(P);
00022   return 0;
00023 }
00024 

Generated on Mon Mar 15 10:59:51 2004 for polylib by doxygen1.2.18