Closed 9and3 closed 2 weeks ago
@DamienGilliard these are the functions you could use too in your segmentation!
@9and3 hey! are you sure the ComputePointCloudDistance computes by default a signed distance? it is my impression that this is not the case so the is_abs toggle doesn't affect the result. :) For the Mesh it works as expected.
it is my impression that this is not the case so the is_abs toggle doesn't affect the result.
You are completely right @eleniv3d , thanks for spotting this out! I opened a new PR fix #32 that removes the is_abs
bool parameter since it makes sense to have it only on mesh-cloud comparison imo (by having an inside-out to sign on the distances).
This PR introduces the 2 functions for calculating the distances for df evaluation.
Following @eleniv3d 's suggestions on slack, instead of exposing the ktrees I prefered to wrap open3d functions around two functions that returns list of distances:
(*) both have signed distances, if the
is_abs
is True it's only positive (**) for this one, it's based on raytracing (@mariklad mentioned it at one moment thanks!) and conversion to tensors, it's basically a point-to-plane. Both should be quite fast.Here's an example file: