首页 / design / oaOccDonut

oaOccDonut

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

概览

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

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

详细说明

The oaOccDonut class implements an unique occurrence of an oaDonut object in a design hierarchy。

方法总览

状态 Python 调用
obj.getHoleBBox(bBox)
obj.getCenter(point)
obj.getRadius()
obj.getHoleRadius()
obj.getBoundary(points, numSides=20)

方法说明

obj.getHoleBBox(bBox)

绑定状态: 已绑定

Python 调用: obj.getHoleBBox(bBox)

This function fills out 'bBox' with the hole bBox of this occDonut。

参数

  • bBox: The bounding box to be filled。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDonut
obj.getHoleBBox(bBox)

obj.getCenter(point)

绑定状态: 已绑定

Python 调用: obj.getCenter(point)

This function fills out 'point' with the center point of this occDonut。

参数

  • point: The point to be filled with the center point of this occDonut。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDonut
obj.getCenter(point)

obj.getRadius()

绑定状态: 已绑定

Python 调用: obj.getRadius()

This function returns the outer radius of this occDonut。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDonut
obj.getRadius()

obj.getHoleRadius()

绑定状态: 已绑定

Python 调用: obj.getHoleRadius()

This function returns the inner radius of this occDonut。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDonut
obj.getHoleRadius()

obj.getBoundary(points, numSides=20)

绑定状态: 已绑定

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

This function fills out 'points' with the boundary polygon of the donut from which this occDonut is generated。 The polygon is generated with the number of sides specified by 'numSides'。

参数

  • points: The point array to be filled with the boundary polygon of this occDonut。
  • numSides: The number of sides of the boundary polygon。

异常

  • oacDonutNumSidesInvalid

Python 示例

from oapy._oa import _design

# assume obj is a oaOccDonut
obj.getBoundary(points, numSides=20)