projects
/
csgray
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
almost there
[csgray]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
9837073
..
7cff960
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-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);
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);
csg_render_image(pixels, width, height);
save_image(out_fname, pixels, width, height);