Polygon2DList
Canonical path: NemAll_Python_Geometry.Polygon2DList
List for Polygon2D objects
__contains__
__contains__(value: Polygon2D) -> bool
Check for a value in the list
Parameters:
-
value
(Polygon2D
) –Value to check
Returns:
-
bool
–State for value is in the list
__delitem__
__delitem__(value: Polygon2D)
__eq__
__eq__(compare_list: Polygon2DList) -> bool
Compare two lists
Parameters:
-
compare_list
(Polygon2DList
) –List to compare
Returns:
-
bool
–Lists are equal state
__getitem__
__getitem__(index: int) -> Polygon2D
Get a list item
Parameters:
-
index
(int
) –Index of the item
Returns:
-
Polygon2D
–Value for the index
__iadd__
__iadd__(eleList: list) -> Polygon2DList
Add a list
Parameters:
-
eleList
(list
) –Polygon2D list
Returns:
-
Polygon2DList
–Lists with the added elements
__init__
overloaded
Initialize
__init__(ele: Polygon2D)
Constructor with a list of Polygon2D
Parameters:
-
eleList
(list
) –Polygon2D list
__setitem__
__setitem__(index: int | slice, value: Polygon2D)
Set a list item
Parameters:
-
index
(int | slice
) –Index of the item
-
value
(Polygon2D
) –Value to item
extend
overloaded
extend(iterable: Polygon2DList)
Add the items from an iterable to the end of the list
Parameters:
-
iterable
(Polygon2DList
) –Iterable to add
Extend the list
Parameters:
-
eleList
(list
) –Polygon2D list
Placeholder