计算3D平面多边形的质心 [英] Compute the centroid of a 3D planar polygon

查看:136
本文介绍了计算3D平面多边形的质心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是与此一个在这里类似的问题. /p>

给出定义表面的3D坐标列表(Point3D1Point3D2Point3D3等),如何计算表面的质心?

在2D模式下,计算由以下公式给出:

那3D模拟物怎么样?

解决方案

如果它是平面,则可以转换为平面局部的坐标系,使用您提供的公式计算质心,然后转换回以获得它在3D空间中的坐标.

This is a similar question to this one here.

Given a list of 3D coordinates that define the surface( Point3D1, Point3D2, Point3D3, and so on), how to calculate the centroid of the surface?

In 2D the computation is given by the following formula:

What about the 3D analogue?

解决方案

If it's a planar surface, you can transform to a coordinate system local to the plane, calculate the centroid using the formulas you presented, and then transform back to get its coordinates in 3D space.

这篇关于计算3D平面多边形的质心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆