Thursday, 27 November 2025

TEKART HW11

I implemented a small CSG framework in Python for Houdini. GeometryModule.py provides a base class that creates a clean geometry container under /obj. CSGModule.py extends this by building a standard CSG SOP network (object merges, Boolean, switch, transform, color, normal, OUT) and overloads the +, -, and & operators to perform union, difference, and intersection between CSG objects by wiring their results into a new Boolean node. BoxModule.py and TubeModule.py are thin subclasses that define the actual source geometry (a box and a capped polygon tube) feeding into the CSG pipeline. HW11.py uses these classes to construct the homework’s specific Boolean tree: first a union between a box and a tube, then a chained subtraction between boxes and a tube, and lastly the intersection of both branches, resulting in the final yellow CSG shape visible in the viewport.





















P4V:



No comments:

Post a Comment