EntityList#
- class ansys.motorcad.core.geometry.EntityList(iterable=(), /)#
Generic class for list of Entities.
Methods
EntityList.append(object, /)Append object to the end of the list.
Remove all items from list.
Return a shallow copy of the list.
EntityList.count(value, /)Return number of occurrences of value.
EntityList.extend(iterable, /)Extend list by appending elements from the iterable.
EntityList.index(value[, start, stop])Return first index of value.
EntityList.insert(index, object, /)Insert object before index.
EntityList.polygon(points[, sort])Create an EntityList from a list of points, connecting them with lines.
EntityList.pop([index])Remove and return item at index (default last).
EntityList.remove(value, /)Remove first occurrence of value.
Reverse EntityList, including entity start end coordinates.
EntityList.sort(*[, key, reverse])Sort the list in ascending order and return None.
Attributes
Check whether geometry is valid for motorcad.
Check whether EntityList is connected in an anticlockwise manner.
Check whether entities create a closed region.
Get points of shape/region from Entity list.
Check whether entities intersect each other.