Revit二开--计算重心
revit二次开发中总有千奇百怪的需求,例如有的朋友要计算物体重心。
在RevitApi里面,提供了对均质物体计算重心的方法,计算结果就是这个几何体的重心的坐标 XYZ.
- Solid 类下面有一个 ComputeCentroid 方法
- Remarks
Calculates the centroid of the solid using an approximation, with an accuracy suitable for architectural purposes. This will correspond only with the center of gravity if the solid represents a homogeneous structure of a single material.

本文介绍在Revit二次开发中如何计算物体重心,使用Revit API的Solid类ComputeCentroid方法,适用于建筑用途的均质物体,确保计算结果的准确性。


1669

被折叠的 条评论
为什么被折叠?



