RectangleHandleModification
implementation of the rectangle handle modification
RectangleHandleModification
Canonical path: Utils.HandleModify.RectangleHandleModification.RectangleHandleModification
implementation of the rectangle handle modification
get_center_and_sizes
staticmethod
get_center_and_sizes(
handle_prop: HandleProperties,
input_pnt: Point2D,
center_point: Point2D,
rotation_angle: Angle,
width: float,
depth: float,
) -> tuple[Point2D, float, float]
create rectangle handles
Parameters:
-
handle_prop
(HandleProperties
) –handle properties
-
input_pnt
(Point2D
) –input point
-
center_point
(Point2D
) –center point
-
rotation_angle
(Angle
) –rotation angle
-
width
(float
) –width
-
depth
(float
) –depth
Returns:
is_rect_handle
staticmethod
is_rect_handle(handle_prop: HandleProperties) -> bool
check if the handle is a rectangle handle
Parameters:
-
handle_prop
(HandleProperties
) –handle properties
Returns:
-
bool
–get the rectangle handle state
Placeholder