12345678910111213141516171819202122232425262728293031323334353637383940 |
- #include <stdio.h>
- #include <stdlib.h>
- #include <stddef.h>
- #include <math.h>
- #include "FEVtypes.h"
- #include "FEV.h"
- int main(){
- vertex_t v1, v2, v3, v4;
- edge_t e1, e2, e3, e4;
- edge_t edges[4];
- face_t f1, f2;
- v1 = new_vert(4.0, 0.0, 0.0);
- v2 = new_vert(1.0, 0.0, 0.0);
- v3 = new_vert(1.0, 1.0, 0.0);
- v4 = new_vert(0.0, 1.0, 0.0);
- e1 = new_edge(v1, v2);
- e2 = new_edge(v2, v3);
- e3 = new_edge(v3, v4);
- e4 = new_edge(v4, v1);
- edges[0] = e1;
- edges[1] = e2;
- edges[2] = e3;
- edges[3] = e4;
- f1 = new_face(edges, 4);
- printificate(f1, "outtest");
- //f2 = readificate("outtest");
- //printificate(f2, "intest");
- return OK;
- }
|