首页 / design / oaOccEllipse

oaOccEllipse

模块: oapy._oa._design 导入: from oapy._oa import _design

概览

oaOccEllipseoapy 中可用,可通过 _design 模块访问。

本页汇总 oaOccEllipse 当前在 oapy 中可用的 Python 接口。

详细说明

The oaOccEllipse class implements an unique occurrence of an oaEllipse object in a design hierarchy。

方法总览

状态 Python 调用
obj.getBoundary(points, numSides)

方法说明

obj.getBoundary(points, numSides)

绑定状态: 已绑定

Python 调用: obj.getBoundary(points, numSides)

This function fills out the specified 'points' with the bounding polygon of this occEllipse。 The polygon is generated with the number of sides specified by 'numSides'。 This function throws an exception if the specified 'numSides' is less than three。

参数

  • points: The location for the returned array of points for the occEllipse。
  • numSides: The number of sides that define the bounding polygon。

异常

  • oacEllipseNumSidesInvalid

Python 示例

from oapy._oa import _design

# assume obj is a oaOccEllipse
obj.getBoundary(points, numSides)