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.

EntityList.clear(/)

Remove all items from list.

EntityList.copy(/)

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.

EntityList.reverse()

Reverse EntityList, including entity start end coordinates.

EntityList.sort(*[, key, reverse])

Sort the list in ascending order and return None.

Attributes

EntityList.has_valid_geometry

Check whether geometry is valid for motorcad.

EntityList.is_anticlockwise

Check whether EntityList is connected in an anticlockwise manner.

EntityList.is_closed

Check whether entities create a closed region.

EntityList.points

Get points of shape/region from Entity list.

EntityList.self_intersecting

Check whether entities intersect each other.