fibomat.curve_tools.combine module#

Provide the combine_curves() function.

fibomat.curve_tools.combine.combine_curves(curve_1: ArcSpline, curve_2: ArcSpline, mode: str) Dict[str, List[ArcSpline]][source]#

Combine two curves. The combining method is given by mode.

mode can be:

  • union

  • xor

  • exclude

  • intersect

See Usage guide for further details.

Args:

curve_1 (ArcSpline): first curve curve_2 (ArcSpline): second curve mode (str): combining mode

Returns:

List[ArcSpline]: list of new ArcSpline