mytest.c 639 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <stddef.h>
  4. #include <math.h>
  5. #include "FEVtypes.h"
  6. #include "FEV.h"
  7. int main(){
  8. vertex_t v1, v2, v3, v4;
  9. edge_t e1, e2, e3, e4;
  10. edge_t edges[4];
  11. face_t f1, f2;
  12. v1 = new_vert(4.0, 0.0, 0.0);
  13. v2 = new_vert(1.0, 0.0, 0.0);
  14. v3 = new_vert(1.0, 1.0, 0.0);
  15. v4 = new_vert(0.0, 1.0, 0.0);
  16. e1 = new_edge(v1, v2);
  17. e2 = new_edge(v2, v3);
  18. e3 = new_edge(v3, v4);
  19. e4 = new_edge(v4, v1);
  20. edges[0] = e1;
  21. edges[1] = e2;
  22. edges[2] = e3;
  23. edges[3] = e4;
  24. f1 = new_face(edges, 4);
  25. printificate(f1, "outtest");
  26. //f2 = readificate("outtest");
  27. //printificate(f2, "intest");
  28. return OK;
  29. }