Skip to content

CurveHandlesCreator

implementation of the curve handles creator

CurveHandlesCreator

Canonical path: Utils.HandleCreator.CurveHandlesCreator.CurveHandlesCreator

implementation of the curve handles creator

arc_2d staticmethod

arc_2d(
    handle_list: HandleList,
    name: str,
    arc: Arc2D,
    info_text: str = "",
    show_input_field_always: bool = False,
    owner_element: BaseElementAdapter = BaseElementAdapter(),
)

create arc handles

Parameters:

  • handle_list (HandleList) –

    handle list

  • name (str) –

    handle parameter name

  • arc (Arc2D) –

    arc 2D

  • info_text (str, default: '' ) –

    info text

  • show_input_field_always (bool, default: False ) –

    show the input field always state

  • owner_element (BaseElementAdapter, default: BaseElementAdapter() ) –

    owner element of the handle (in element modification mode)

line staticmethod

line(
    handle_list: HandleList,
    name: str,
    line: Line3D | Line2D,
    info_text: str = "",
    show_input_field_always: bool = False,
    owner_element: BaseElementAdapter = BaseElementAdapter(),
)

create x/y/z point distance handles for a line defined by two points

Parameters:

  • handle_list (HandleList) –

    handle list

  • name (str) –

    handle parameter name

  • line (Line3D | Line2D) –

    line

  • info_text (str, default: '' ) –

    info text

  • show_input_field_always (bool, default: False ) –

    show the input field always state

  • owner_element (BaseElementAdapter, default: BaseElementAdapter() ) –

    owner element of the handle (in element modification mode)

poly_curve staticmethod

poly_curve(
    handle_list: HandleList,
    name: str,
    poly_curve: POLY_CURVES,
    add_split_points: bool,
    info_text: str = "",
    info_text_template: Template = Template(""),
    index_offset: int = 0,
    delete_point: bool = False,
    owner_element: BaseElementAdapter = BaseElementAdapter(),
    has_input_field: bool = True,
    show_input_field_always: bool = False,
    input_field_above: bool = True,
    poly_point_distance_fields: PolyPointsDistanceType = NONE,
)

create point move handles for a poly points curve

Parameters:

  • handle_list (HandleList) –

    handle list

  • name (str) –

    handle parameter name

  • poly_curve (POLY_CURVES) –

    poly points curve

  • add_split_points (bool) –

    add split points

  • info_text (str, default: '' ) –

    info text

  • info_text_template (Template, default: Template('') ) –

    info text template

  • index_offset (int, default: 0 ) –

    index offset for the info text

  • delete_point (bool, default: False ) –

    enable delete point state

  • owner_element (BaseElementAdapter, default: BaseElementAdapter() ) –

    owner element of the handle (in element modification mode)

  • has_input_field (bool, default: True ) –

    has input field state

  • show_input_field_always (bool, default: False ) –

    show the input field always state

  • input_field_above (bool, default: True ) –

    input field above the dimension line state

  • poly_point_distance_fields (PolyPointsDistanceType, default: NONE ) –

    distance fields for the poly points

vector staticmethod

vector(
    handle_list: HandleList,
    start_point: Point2D | Point3D,
    vector: Vector2D | Vector3D,
    name: str,
    info_text: str = "",
    owner_element: BaseElementAdapter = BaseElementAdapter(),
)

create point move handles for a vector

Parameters:

Placeholder