Region#

class ansys.motorcad.core.geometry.Region(motorcad_instance=None)#

Python representation of Motor-CAD geometry region.

Methods

Region.add_entity(entity)

Add entity to list of region entities.

Region.add_point(point)

Add a new point into region on an existing Line/Arc.

Region.collides(regions)

Check whether any of the specified regions collide with self.

Region.edit_point(old_coordinates, ...)

Edit a point in the region and update entities.

Region.find_entity_from_coordinates(...)

Search through region to find an entity with start and end coordinates.

Region.from_coordinate_list()

Work in progress.

Region.insert_entity(index, entity)

Insert entity to list of region entities at given index.

Region.insert_polyline(index, polyline)

Insert polyline at given index, polyline can be made up of line/arc entities.

Region.is_closed()

Check whether region entities create a closed region.

Region.mirror(mirror_line[, unique_name])

Mirror region along entity.

Region.remove_entity(entity_remove)

Remove the entity from the region.

Region.subtract(region)

Subtract region from self, returning any additional regions.

Region.unite(regions)

Subtract region from self, returning any additional regions.

Region.update(region)

Update class fields from another region.

Attributes

Region.child_names

Property for child names list.

Region.children

Return list of child regions from Motor-CAD.

Region.motorcad_instance

Get linked Motor-CAD instance.

Region.parent

Return parent region from Motor-CAD.

Region.parent_name

Get region parent name.

Region.points

Get points that exist in region.