Brief Description:

I implemented CSG for my cuda-ized raytracer for 473. CSG involves the operations of union, intersect and subtraction. In complex implementations these operations are stacked together, involving many complex operations. In my simple implementation I illustrate these three operations in several different configurations for the objects of a cube(box) and a sphere. I took most of my shape arrangement inspiration from the wikipedia page: http://en.wikipedia.org/wiki/Constructive_solid_geometry

UNION

Union1, an example


Union is the most boring operation although it still looks pretty. I only did one of these. I like red and blue.

INTERSECT

Intersect1, an example


A spherical slice of a cube is pretty nice


This is similar to the wikipedia rendering of intersection.

DIFFERENCE


This is the wikipedia example of difference illustrated in a povray file.


Similar to the first from a different angle


Different lighting

COMPOUND/FUN


On the esoteric's of "touching" what does it mean to touch, these 'fatty' bands as I would call them are touching to me.


This is cube subtracted with the intersection of a sphere, looks kinda cool doesn't actually fit cleanly into a category as it is compound.