PointCloudCount

返回点云包含点的数量。

语法

rhinoscriptsyntax.PointCloudCount (object_id)

rhinoscript.geometry.PointCloudCount (object_id)

参数

object_id

必须参数。字符串或 Guid。点云物件的 ID 。

返回值

数字

执行成功返回点的数量。

None

如果执行不成功或出错,返回空值。

示例

import rhinoscriptsyntax as rs

id = rs.GetObject("Select point cloud", rs.filter.pointcloud)

print "Point count:", rs.PointCloudCount(id)

同见

AddPointCloud

IsPointCloud

PointCloudPoints