fabex.utilities.curve_utils#
Functions#
|
Convert a curve object to Shapely polygons. |
|
|
|
|
|
Module Contents#
- curve_to_shapely(cob, use_modifiers=False)[source]#
Convert a curve object to Shapely polygons.
This function takes a curve object and converts it into a list of Shapely polygons. It first breaks the curve into chunks and then transforms those chunks into Shapely-compatible polygon representations. The use_modifiers parameter allows for additional processing of the curve before conversion, depending on the specific requirements of the application.
- Parameters:
cob – The curve object to be converted.
use_modifiers (bool) – A flag indicating whether to apply modifiers during the conversion process. Defaults to False.
- Returns:
A list of Shapely polygons created from the curve object.
- Return type:
list