almost there
[csgray] / src / main.c
index 9837073..7cff960 100644 (file)
@@ -30,9 +30,9 @@ int main(int argc, char **argv)
 
        oa = csg_sphere(0, 0, 0, 1);
        ob = csg_sphere(0, 1, 0, 0.8);
-       oc = csg_intersection(oa, ob);
+       oc = csg_union(oa, ob);
 
-       csg_add_object(0, oc);
+       csg_add_object(oc);
 
        csg_render_image(pixels, width, height);
        save_image(out_fname, pixels, width, height);