这里再提供一种代码的方法.
[mw_shl_code=applescript,true]#coding=utf-8
import rhinoscriptsyntax as rs
srfs = rs.GetObjects("选择需要测试的平面",rs.filter.surface)
color = rs.GetColor(0)
if srfs and color:
geo_srfs = [rs.coercesurface(i) for i in srfs]
PlaneSurface = [rs.ObjectColor(srfs,color) for i in xrange(len(geo_srfs)) if geo_srfs.IsPlanar()][/mw_shl_code]
|