PolyOffsetBuilder

PolyOffsetBuilder

概述

PolyOffsetBuilder 是 Aspose.Page FOSS 中用于 Python 的类。

PolyOffsetBuilder.add_point(pt) 在计算偏移几何之前向多边形添加一个顶点,build() 完成构造。

此类提供 7 种方法,用于在 Python 程序中处理 PolyOffsetBuilder 对象。可用的方法包括:__init__、add_point、build、do_miter、do_round、do_square、offset_point。在安装 Aspose.Page FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:cos、current_poly、delta、endtype、jointype、miter_lim,以及另外 6 项。

属性

名称类型访问描述
p``读取获取 p。
current_polyList[IntPoint]读取获取当前多边形。
normalsList[DoublePoint]读取获取法线。
delta``读取获取 delta。
sin_a``读取获取 sin a。
sin``读取获取正弦。
cos``读取获取余弦。
steps360``读取获取 steps360。
jointype``读取获取 jointype。
endtype``读取获取端点类型。
solutionList[List[IntPoint]]读取获取解决方案。
miter_lim``读取获取斜接限制。

方法

签名描述
__init__(pts: List[List[IntPoint]], delta: float, jointype: int, endtype: int, limit: float)
add_point(pt: IntPoint)在计算偏移几何之前向多边形添加一个顶点,build() 完成构造
do_square(k: int, j: int, m: int)
do_miter(r: float, k: int, j: int, m: int)
do_round(k: int, j: int, m: int)
offset_point(k: int, j: int, m: int) → int
build()

另请参阅

 中文