Package pygeodesy :: Module booleans :: Class BooleanFHP |
[frames] | no frames]

# Class BooleanFHP

      object --+
               |
    named._Named --+
                   |
      _CompositeBase --+
                       |
           _CompositeFHP --+
                           |
              object --+   |
                       |   |
            _BooleanBase --+
                           |
                          BooleanFHP

Composite polygon class providing boolean operations between two `composite` polygons using Forster-Hormann-Popa's C++ implementation transcoded to pure Python.

The supported operations between (composite) polygon A and B are:

- C = A | B or A |= B, union of A and B
- C = A & B or A &= B, intersection of A and B

See Also: Function clipFHP4 and class BooleanGH.

Instance Methods
__init__(self, lls, raiser=False, **name_kind_eps) New BooleanFHP. |
__isub__(self, unused) In-place difference: `this -= other`. |
__rsub__(self, unused) Reverse difference: `other - this` |
__sub__(self, unused) Difference: `this - other`. |
Inherited from `_CompositeBase`: `__contains__`, `__iter__`, `__len__`, `__repr__`, `__str__`, `clipids` Inherited from `named._Named`: `__imatmul__`, `__matmul__`, `__rmatmul__`, `attrs`, `classof`, `copy`, `dup`, `methodname`, `rename`, `toRepr`, `toStr`, `toStr2` Inherited from `_BooleanBase`: `__and__`, `__iand__`, `__ior__`, `__or__`, `__rand__`, `__ror__` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
Inherited from `named._Named`: `classname`, `classnaming`, `iteration`, `name`, `named`, `named2`, `named3`, `named4` Inherited from `object`: `__class__`

Method Details

### __init__ (self, lls, raiser=False, **name_kind_eps) (Constructor) |
New BooleanFHP. Arguments: `lls` - The polygon points (iterable of 2 or more `LatLon`s, LatLonFHPs or ClipFHP4Tuples). `raiser` - If `True` throw ClipError exceptions for errors. `name_kind_eps` - Optional `name=NN` (`str`) and/or optional `kind='corners'` of `lls` points (`str`) and `eps=EPS` tolerance for duplicate removal (`str`). Overrides: object.__init__