Planarize a Geometry

#include <psPlanarize.hpp>

With this class, the user is able to planarize the domain at a specified cutoff position. The planarization process involves subtracting a plane from all materials within the domain using a boolean operation.

Example usage:

C++

ps::Planarize<double, 3>(domain, 
                         0. /*cut off height in z-direction*/).apply();

Python

vps.Planarize(geometry=domain, cutoffHeight=0.).apply()