typerig.proxy.gs3.objects.pathops · declarations 001
Back to typerig.proxy.gs3.objects.pathops
AREA_TOLERANCE
module-attribute
AREA_TOLERANCE
OPERATIONS
module-attribute
OPERATIONS
OP_ADD
module-attribute
OP_ADD
OP_EXCLUDE
module-attribute
OP_EXCLUDE
OP_INTERSECT
module-attribute
OP_INTERSECT
OP_SUBTRACT
module-attribute
OP_SUBTRACT
STATUS_BAD_INDEX
module-attribute
STATUS_BAD_INDEX
STATUS_EMPTY
module-attribute
STATUS_EMPTY
STATUS_ENGINE_ERROR
module-attribute
STATUS_ENGINE_ERROR
STATUS_OK
module-attribute
STATUS_OK
STATUS_TOO_FEW
module-attribute
STATUS_TOO_FEW
as_outer
as_outer(paths)
Copies of paths, each set to outer direction (CCW).
exclude
exclude(a, b)
fold
fold(operands, operation, reverse=False)
FL contour_bool: left fold of one operation over operand paths.
Args: operands (list of GSPath): closed paths, one operand each, in order. operation (str): OP_ADD / OP_SUBTRACT / OP_INTERSECT / OP_EXCLUDE. reverse (bool): fold from the last operand (FL Alt).
Returns: list of GSPath: new paths (may be empty). Operands are not changed.
Raises: PathOpError, KeyError (unknown operation).
intersect
intersect(a, b)
signed_area
signed_area(path)
Shoelace area over all nodes of a GSPath. CCW (outer in Glyphs) > 0. Off-curves are included: the control polygon has the same orientation as the outline for any sane contour.
subtract
subtract(a, b)
union
union(a, b)