找到凸壳的质量中心
我正在尝试找到凸船体的质量中心。该凸壳是通过一组散射数据点的三角剖分构建的,尤其是delaunay三角剖分,每个点都有一个值, ie ie w = f(x,x,y,z)。凸壳的质量由函数F给出,该功能F被视为固体的密度。该函数未知,因此必须从每个点的值W中插值。
我是Python的初学者,所以我想知道这将是找到这个中心的最佳方法。我首先尝试使用2D表面。 scipy.interpaly.griddata
插值数据,但后来我不知道如何集成函数以计算质量中心(我需要在域上集成插值函数f, convexhull)。任何帮助将不胜感激!提前致谢。
I'm trying to find the center of mass of a convex hull. This convex hull is constructed by the triangulation of a set of scattered data points, in particular a Delaunay triangulation, and each point has a value, i.e. w = f(x,y,z). The mass of the convex hull is given by the function f, which is treated as the density of the solid. This function is unknown, so it has to be interpolated from the values w at each point.
I'm a beginner with Python, so I was wondering which would be the best way of finding this center of mass. I was trying with 2D surfaces first. scipy.interpolate.griddata
interpolates the data, but then I don't know how to integrate the function in order to compute the center of mass (I need to integrate the interpolated function f over the domain of the convexhull). Any help will be much appreciated! Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论