Skip to content

Model Ele List

Class full path: ModelEleList.ModelEleList

Bases: list

implementation of the model element list

Functions

__init__(com_prop=GetCurrentCommonProperties())

initialize

Parameters:

Name Type Description Default
com_prop CommonProperties

common properties for the elements

GetCurrentCommonProperties()

append_geometry_2d(geo_ele, com_prop=None)

append a 2D geometry element to the list

Parameters:

Name Type Description Default
geo_ele Union[ListModelEle2D, ModelEle2D, ModelEle2DList]

2D geometry element

required
com_prop Optional[CommonProperties]

common properties

None

append_geometry_3d(geo_ele, com_prop=None)

append a 3D geometry element to the list

Parameters:

Name Type Description Default
geo_ele Union[ListModelEle3D, ModelEle3D, ModelEle3DList]

3D geometry element

required
com_prop Optional[CommonProperties]

common properties

None

set_color(color)

set the color

Parameters:

Name Type Description Default
color int

color

required

set_pen(pen)

set the pen

Parameters:

Name Type Description Default
pen int

pen

required

set_stroke(stroke)

set the stroke

Parameters:

Name Type Description Default
stroke int

stroke

required