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.
Search through region to find an entity with start and end coordinates.
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.
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.replace
(replacement_region)Replace self with another region.
Region.rotate
(centre_point, angle)Rotate Region around a point for a given angle.
Region.round_corner
(corner_coordinate, radius)Round the corner of a region.
Region.round_corners
(corner_coordinates, radius)Round multiple corners of a region.
Region.subtract
(region)Subtract region from self, returning any additional regions.
Region.translate
(x, y)Translate Region by specified x,y distances.
Region.unite
(regions)Unite one or more other regions with self.
Region.update
(region)Update class fields from another region.
Attributes
Get the region area.
Get the region centroid.
Get child names list.
Return list of child regions from Motor-CAD.
Get or set region colour.
Get or set number of region duplications for the full machine.
Get or set the list of entities in the region.
Get or set lamination type of region from Motor-CAD.
Get or set linked duplication/unite region.
Get or set region material name.
Get or set the mesh length to use, or 0 for default.
Get or set the linked Motor-CAD instance.
Get or set region name.
Get or set parent region from Motor-CAD.
Get or set the region parent name.
Get points that exist in region.
Get the reference coordinate within the region.
Get region type.
Get or set if region is singular.