ShapeModel
¤
Model for shape combinations.
Functions¤
boolean_difference
¤
boolean_difference(
A: list[tuple[int, int]],
B: list[tuple[int, int]],
remove_objects: bool = True,
remove_tools: bool = True,
) -> list[tuple[int, int]]
Boolean difference of two sets of shapes.
Parameters:
-
A(list of tuple) –The dimtags of the object shapes.
-
B(tuple) –The dimtags of the tool shapes.
Returns:
Notes
The objects are the shapes to which the boolean operation should be applied. The tools are the shapes used to perform the operation.
boolean_fragment
¤
boolean_fragment(
A: list[tuple[int, int]],
B: list[tuple[int, int]],
remove_objects: bool = True,
remove_tools: bool = True,
) -> list[tuple[int, int]]
Boolean fragment of two sets of shapes.
Parameters:
-
A(list of tuple) –The dimtags of the object shapes.
-
B(tuple) –The dimtags of the tool shapes.
Returns:
Notes
The objects are the shapes to which the boolean operation should be applied. The tools are the shapes used to perform the operation.
boolean_intersection
¤
boolean_intersection(
A: list[tuple[int, int]],
B: list[tuple[int, int]],
remove_objects: bool = True,
remove_tools: bool = True,
) -> list[tuple[int, int]]
Boolean intersection of two sets of shapes.
Parameters:
-
A(list[tuple[int, int]]) –The dimtags of the object shapes.
-
B(list[tuple[int, int]]) –The dimtags of the tool shapes.
Returns:
Notes
The objects are the shapes to which the boolean operation should be applied. The tools are the shapes used to perform the operation.
boolean_union
¤
boolean_union(
A: list[tuple[int, int]],
B: list[tuple[int, int]],
remove_objects: bool = True,
remove_tools: bool = True,
) -> list[tuple[int, int]]
Boolean union of two sets of shapes.
Parameters:
-
A(list of tuple) –The dimtags of the object shapes.
-
B(tuple) –The dimtags of the tool shapes.
Returns:
Notes
The objects are the shapes to which the boolean operation should be applied. The tools are the shapes used to perform the operation.