4529b9855854102f5b3e5b24722a3af565707d81
[convexer.git] / cxr / test.c
1 #include "convexer.c"
2 #include "solid.h"
3
4 int main(int arc, const char *argv[])
5 {
6 cxr_vdf *vdo = cxr_vdf_open(
7 "/home/harry/Documents/blender_addons_remote/addons/convexer/test.vmf" );
8
9 cxr_vmf_context ctx =
10 {
11 .brush_count = 0,
12 .entity_count = 0,
13 .face_count = 0,
14 .detailvbsp = "",
15 .detailmaterial = "",
16 .lightmap_scale = 12,
17 .mapversion = 4,
18 .offset = { 0.0, 0.0, 0.0 },
19 .scale = 32.0,
20 .skyname = "vertigoblue"
21 };
22
23 cxr_world *world = cxr_decompose( &test_mesh );
24 if( world )
25 {
26 cxr_push_world_vmf( world, &ctx, vdo );
27 cxr_free_world( world );
28 }
29
30 cxr_vmf_begin_entities( &ctx, vdo );
31 cxr_end_vmf( &ctx, vdo );
32
33 cxr_vdf_close(vdo);
34 return 0;
35 }