bluemira.geometry._pyclipper_offset
Discretised offset operations used in case of failure in primitive offsetting.
Functions
|
Carries out an offset operation on the Coordinates using the ClipperLib library. |
Module Contents
- bluemira.geometry._pyclipper_offset.offset_clipper(coordinates: bluemira.geometry.coordinates.Coordinates, delta: float, method: str = 'square', miter_limit: float = 2.0) bluemira.geometry.coordinates.Coordinates
Carries out an offset operation on the Coordinates using the ClipperLib library. Only supports closed Coordinates.
- Parameters:
coordinates (bluemira.geometry.coordinates.Coordinates) – The Coordinates upon which to perform the offset operation
delta (float) – The value of the offset [m]. Positive for increasing size, negative for decreasing
method (str) – The type of offset to perform [‘square’, ‘round’, ‘miter’]
miter_limit (float) – The ratio of delta to use when mitering acute corners. Only used if method == ‘miter’
- Return type:
The offset Coordinates result
- Raises:
GeometryError – If the Coordinates are not planar If the Coordinates are not closed Results in no geometry