dos_massprops

返回3-D实体图元的常规属性.


语法

(dos_massprops entity)

参数

entity

3-D实体对象的图元名.

 

返回

如果成功, 返回实体的定义数据. 返回信息如下:

 

volume

实体的体积.
(The volume of the solid.)

centroid

实体的质心.
(A list containing the centroid of the solid.)

momInertia

包含X,Y和Z的表, 实体的惯性力矩.
(A list containing the X, Y, and Z moments of inertia of the solid.)

prodInertia

包含X,Y和Z的表, 实体的惯性乘积.
(A list containing the X, Y, and Z products of inertia of the solid.)

prinMoments  

包含X,Y和Z的表, 实体的主要力矩.
(A list containing the X, Y, and Z principal moments of the solid.)

prinAxes

包含X,Y和Z的表, 实体的主要轴线.
(A list containing the X, Y, and Z principal axes of the solid.)

radiiGyration

包含X,Y和Z的表, 实体的回旋半径.
(A list containing the X, Y, and Z radii of gyration of the solid.)

extents

一个表, 包含实体的范围 (边界立方体).
(A list containing the extents (bounding box) of the solid.)

 

nil 失败时.

示例

Command: (dos_massprops (car (entsel "\nSelect a solid:")))

(29.7069 (8.38222 3.97879 2.0) (640.888 2273.47 2597.49) (990.758 236.395 498.02) (51.7765 67.3905 39.9486) ((1.0 0.0 0.0) (0.0 1.0 0.0) (0.0 0.0 1.0)) (4.64475 8.74815 9.35079) ((6.70725 2.87031 0.0) (10.0572 5.08728 4.0)))