fabex.utilities.curve_utils#

Functions#

curve_to_shapely(cob[, use_modifiers])

Convert a curve object to Shapely polygons.

mesh_from_curve(o[, use_modifiers])

mesh_from_curve_to_chunk(object)

curve_to_chunks(o[, use_modifiers])

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

mesh_from_curve(o, use_modifiers=False)[source]#
mesh_from_curve_to_chunk(object)[source]#
curve_to_chunks(o, use_modifiers=False)[source]#