SDF - signed distance function generation from input triangle mesh