Tech Art - HW10
This code is a little bit longer than the last two, so I have to split up the screenshots.
We start off with creating our CSG object class. It contains the name, geo type, and the nodes that I use for the merge, transforms, and fonts. At the bottom it has a check to see if the object does have an object type, and if it does it sets it to 1 which is polygon. Which was how I made the sphere polygon instead of primitive.
Next we have our set up for "+", which creates a boolean set to the default union. It also sets up its own node tree. At the bottom it prints out what was combined.
I did similar set ups for the other operations.
Then we have our lovely little print.







No comments:
Post a Comment