简体   繁体   English

最接近曲面集的点

[英]closest point to set of surfaces

I have these surfaces defined by their position in space (x, y, z). 这些表面由它们在空间(x,y,z)中的位置定义。 Ideally, they should intersect but it is not always the case. 理想情况下,它们应该相交,但并非总是如此。 However, there should be a point that has the shortest Ecludian distance from all the surfaces. 但是,应该有一个点到所有曲面的光程距离最短。 I do not have analytical expressions for my surfaces. 我的表面没有解析表达式。 How would I find this point rather than going through all the possible candidates, which could be thousands? 我如何找到这一点,而不是遍历所有可能的候选人(可能是数千人)?

In case you know the mathematical equations behind those surfaces, I'd recommend finding the closest point by formulating a least squares problem and solving analytically. 如果您知道这些表面背后的数学方程式,建议您通过拟定最小二乘问题并进行解析求解,找到最接近的点。

If you don't know anything about those surfaces, you should try either: 如果您对这些表面一无所知,则可以尝试以下任一方法:

  1. Exhaustive search - Slow, but when it is feasible, it always works. 穷举搜索-速度很慢,但是在可行的情况下始终可以正常工作。
  2. Some kind of non-linear optimization method, like fminsearch . 某种非线性优化方法,例如fminsearch If those meshes have enough points, you can simply find the closest point. 如果这些网格具有足够的点,则可以简单地找到最接近的点。 If not, you should do some kind of interpolation as well. 如果没有,您也应该进行某种插值。 If you have some starting point, supply it to the algorithm. 如果您有一些起点,请将其提供给算法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM