首页 / design / oaOccArc

oaOccArc

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

概览

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

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

详细说明

The oaOccArc class implements an unique occurrence of an oaArc object in a design hierarchy。

方法总览

状态 Python 调用
obj.getEllipseBBox(bBox)
obj.getStartAngle()
obj.getStopAngle()
obj.getEllipseBBox(bBox)
obj.getStartAngle()
obj.getStopAngle()
obj.getPoints(points, numSegs=10)

方法说明

obj.getEllipseBBox(bBox)

绑定状态: 已绑定

Python 调用: obj.getEllipseBBox(bBox)

This function retrieves the bounding box of the arc in which this occArc is generated。

参数

  • bBox: Input bounding box to be filled in。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccArc
obj.getEllipseBBox(bBox)

obj.getStartAngle()

绑定状态: 已绑定

Python 调用: obj.getStartAngle()

This function retrieves the start angle of the arc, from which this occArc is generated, in radians。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccArc
obj.getStartAngle()

obj.getStopAngle()

绑定状态: 已绑定

Python 调用: obj.getStopAngle()

This function retrieves the stop angle of the arc, from which this occArc is generated, in radians。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccArc
obj.getStopAngle()

obj.getEllipseBBox(bBox)

绑定状态: 已绑定

Python 调用: obj.getEllipseBBox(bBox)

This function fills out the specified bBox with the ellipse box of this occArc。

参数

  • bBox: Input bounding box to be filled in。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccArc
obj.getEllipseBBox(bBox)

obj.getStartAngle()

绑定状态: 已绑定

Python 调用: obj.getStartAngle()

This function retrieves the start angle of this occArc in radians。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccArc
obj.getStartAngle()

obj.getStopAngle()

绑定状态: 已绑定

Python 调用: obj.getStopAngle()

This function retrieves the stop angle of this occArc in radians。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccArc
obj.getStopAngle()

obj.getPoints(points, numSegs=10)

绑定状态: 已绑定

Python 调用: obj.getPoints(points, numSegs=10)

This function generates a line that represents the arc from which this occArc is generated, storing the result in 'points'。 'numPoints' indicates the number of points that will be used in creating the arc。

参数

  • points: Point array to be filled in。
  • numPoints: The number of points that is used in creating the arc。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccArc
obj.getPoints(points, numSegs=10)