A Unified Differentiable Boolean Operator with Fuzzy Logic
Hsueh-Ti Derek Liu, Maneesh Agrawala, Cem Yuksel, Tim Omernick, Vinith Misra, Stefano Corazza, Morgan McGuire, Victor Zordan
TL;DR
The paper addresses the challenge of optimizing constructive solid geometry (CSG) trees when boolean decisions are discrete by introducing a unified differentiable boolean operator, B_{c}, grounded in product fuzzy logic and tetrahedral barycentric interpolation. This operator enables gradient-based optimization over both primitive parameters and boolean operation types, operating on soft occupancy functions to model both crisp and smooth shapes. Empirical results demonstrate improved inverse CSG fitting, more compact trees after pruning, and enhanced CSG generative modeling on ShapeNet compared to fixed-operator baselines, while preserving sharpness for binary inputs. The work highlights significant implications for fully continuous CSG optimization, potential hardware acceleration, and extensions to broader fuzzy-logic operators for more flexible geometric modeling.
Abstract
This paper presents a unified differentiable boolean operator for implicit solid shape modeling using Constructive Solid Geometry (CSG). Traditional CSG relies on min, max operators to perform boolean operations on implicit shapes. But because these boolean operators are discontinuous and discrete in the choice of operations, this makes optimization over the CSG representation challenging. Drawing inspiration from fuzzy logic, we present a unified boolean operator that outputs a continuous function and is differentiable with respect to operator types. This enables optimization of both the primitives and the boolean operations employed in CSG with continuous optimization techniques, such as gradient descent. We further demonstrate that such a continuous boolean operator allows modeling of both sharp mechanical objects and smooth organic shapes with the same framework. Our proposed boolean operator opens up new possibilities for future research toward fully continuous CSG optimization.
