<p>Is there a method to find the shortest segment between 2 Signed distance field?</p>
<p>I know how to calculate this segment for a limited number of SDF like from sphere to sphere, from capsule to sphere, from tor to sphere, from tor to capsule, from box to sphere...</p>
<p>I need a general method to find the segment AB between 2 SDF.</p>
<p>This involves finding the collision point and penetration depth between 2 SDFs someone.
A general method to suggest to me that works between 2 any SDF 3D?</p>
<p>Thanks in advance!</p>

CC BY-SA 4.0
2024-06-06T02:18:09.813Z
You mean two points on the zero-level set of the SDFs?
Enigmatisms
CC BY-SA 4.0
2024-06-06T12:21:47.303Z
If your surfaces could be parameterised and were differentiable, it might be a lot easier.
Simon F
CC BY-SA 4.0
2024-06-07T14:10:46.043Z
Yes the 2 points must be at level 0 of the SDF. I had the idea of ​​using the gradient descent but it doesn't work for concave SDFs. This solution is therefore not reliable and generalizable for all types of SDF.
Kuwazy
<algorithm>
How to get the shortest segment AB between 2 SDF (Signed distance field) in 3D?
Kuwazy
# How to get the shortest segment AB between 2 SDF (Signed distance field) in 3D?

(Asked by: username_0 on 2024-06-05)

Is there a method to find the shortest segment between 2 Signed distance field?

I know how to calculate this segment for a limited number of SDF like from sphere to sphere, from capsule to sphere, from tor to sphere, from tor to capsule, from box to sphere...

I need a general method to find the segment AB between 2 SDF.

This involves finding the collision point and penetration depth between 2 SDFs someone.
A general method to suggest to me that works between 2 any SDF 3D?

Thanks in advance!

**Tags:** algorithm

> **Comments:**
> **username_1**: You mean two points on the zero-level set of the SDFs?  
> **username_2**: If your surfaces could be parameterised and were differentiable, it might be a lot easier.  
> **username_0**: Yes the 2 points must be at level 0 of the SDF. I had the idea of ​​using the gradient descent but it doesn't work for concave SDFs. This solution is therefore not reliable and generalizable for all types of SDF.  

---

## 0 answers

