CSG operations on implicit surfaces with marching cubes
问题 I render isosurfaces with marching cubes, (or perhaps marching squares as this is 2D) and I want to do set operations like set difference, intersection and union. I thought this was easy to implement, by simply choosing between two vertex scalars from two different implicit surfaces, but it is not. For my initial testing, I tried with two spheres circles, and the set operation difference . i.e A - B. One circle is moving and the other one is stationary. Here's the approach I tried when