Skip to content

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:

  • tuple[Point2D, float, float]

    center point, width and depth

is_rect_handle staticmethod

is_rect_handle(handle_prop: HandleProperties) -> bool

check if the handle is a rectangle handle

Parameters:

Returns:

  • bool

    get the rectangle handle state

Placeholder