首页 / design / oaOccPathSeg

oaOccPathSeg

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

概览

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

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

详细说明

The oaOccPathSeg class implements an unique occurrence of an oaPathSeg object in a design hierarchy。

方法总览

状态 Python 调用
obj.getPoints(beginPoint, endPoint)
obj.getStyle(style)
obj.getBoundary(boundary)
obj.isOrthogonal()

方法说明

obj.getPoints(beginPoint, endPoint)

绑定状态: 已绑定

Python 调用: obj.getPoints(beginPoint, endPoint)

This function returns the begin and end points of this occPathSeg in the specified 'beginPoint' and 'endPoint' arguments。

参数

  • beginPoint: The beginning point。
  • endPoint: The end point。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccPathSeg
obj.getPoints(beginPoint, endPoint)

obj.getStyle(style)

绑定状态: 已绑定

Python 调用: obj.getStyle(style)

This function returns the segStyle associated with this occPathSeg。

参数

  • style: The pathSeg style。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccPathSeg
obj.getStyle(style)

obj.getBoundary(boundary)

绑定状态: 已绑定

Python 调用: obj.getBoundary(boundary)

This function fills out 'boundary' with the boundary polygon of this occPathSeg。

参数

  • boundary: The point array to be filled with the boundary of this occPathSeg。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccPathSeg
obj.getBoundary(boundary)

obj.isOrthogonal()

绑定状态: 已绑定

Python 调用: obj.isOrthogonal()

This function returns a boolean indicating whether the points in this occPathSeg are orthogonal。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccPathSeg
obj.isOrthogonal()