[英]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: 如果您对这些表面一无所知,则可以尝试以下任一方法:
fminsearch
. fminsearch
。 If those meshes have enough points, you can simply find the closest point.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.