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