Skip to content

Polygon2DFilledAreaUtil

implementation of the Polygon2DFilledAreaUtil

  • add hatching, pattern, filling, face style or surface element properties
  • create filled area with polygon2D

Polygon2DFilledAreaUtil

Canonical path: Utils.Geometry.Polygon2DFilledAreaUtil.Polygon2DFilledAreaUtil

implementation of the Polygon2DFilledAreaUtil

__init__

__init__()

initialize the Polygon2DFilledAreaUtil

execute

execute(
    model_ele_list: ModelEleList,
    polygon: Polygon2D,
    visible_polygon: bool,
    visible_area: bool = True,
)

create the filled area depending on the current filled area properties and add it to the model element list

Parameters:

  • model_ele_list (ModelEleList) –

    model element list

  • polygon (Polygon2D) –

    polygon (created with the common properties of the model element list)

  • visible_polygon (bool) –

    visible polygon state

  • visible_area (bool, default: True ) –

    visible area state

set_common_properties

set_common_properties(com_prop: CommonProperties | None)

set the common properties

Parameters:

set_face_style

set_face_style(face_style_prop: FaceStyleProperties | None)

set the face style properties

Parameters:

set_filling

set_filling(filling_prop: FillingProperties | None)

set the filling properties

Parameters:

set_hatching

set_hatching(hatching_prop: HatchingProperties | None)

set the hatching properties

Parameters:

set_pattern

set_pattern(pattern_prop: PatternProperties | None)

set the pattern properties

Parameters:

set_surface_ele

set_surface_ele(surface_prop: SurfaceElementProperties | None)

set the surface element properties

Parameters:

Placeholder