oaOccPolygon
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaOccPolygon 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaOccPolygon 当前在 oapy 中可用的 Python 接口。
详细说明
The oaOccPolygon class implements an unique occurrence of an oaPolygon object in a design hierarchy。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getNumPoints() |
| ✅ | obj.getPoints(points) |
| ✅ | obj.isOrthogonal() |
方法说明
obj.getNumPoints()
绑定状态: 已绑定
Python 调用: obj.getNumPoints()
This function returns the number of points in this occPolygon。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccPolygon
obj.getNumPoints()
obj.getPoints(points)
绑定状态: 已绑定
Python 调用: obj.getPoints(points)
This function fills out 'points' with the points of this occPolygon。
参数
points: The point array to be filled with the points of this occPolygon。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccPolygon
obj.getPoints(points)
obj.isOrthogonal()
绑定状态: 已绑定
Python 调用: obj.isOrthogonal()
This function returns a boolean indicating whether or not this occPolygon's pointArray is orthogonal。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccPolygon
obj.isOrthogonal()