3d cantilever with topological gradient computations