找到凸壳的质量中心

发布于 2025-02-03 11:01:43 字数 310 浏览 1 评论 0原文

我正在尝试找到凸船体的质量中心。该凸壳是通过一组散射数据点的三角剖分构建的,尤其是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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文