Arc#

class ansys.motorcad.core.geometry.Arc(start, end, centre=None, radius=None)#

Python representation of Motor-CAD arc entity based upon start, end, (centre or radius).

Parameters:
startCoordinate

Start coordinate.

endCoordinate

End coordinate.

centreCoordinate, optional

Centre coordinate.

radiusfloat, optional

Arc radius

Methods

Arc.coordinate_on_entity(coordinate)

Get if a coordinate exists on this Arc.

Arc.coordinate_within_arc_radius(coordinate)

Check if coordinate exists within arc radius.

Arc.from_coordinates(start_point, ...)

Take three coordinates and converts to an arc.

Arc.get_arc_intersection(arc)

Get intersection Coordinates of arc with another arc.

Arc.get_coordinate_from_distance(ref_coordinate)

Get the coordinate at the specified distance along the arc from the reference coordinate.

Arc.get_coordinate_from_percentage_distance(...)

Get the coordinate at a fractional distance along the arc from the reference coord.

Arc.get_intersection(entity)

Get intersection Coordinate of entity with another entity.

Arc.get_line_intersection(line)

Get intersection Coordinates of arc with a line.

Arc.mirror(mirror_line)

Mirror arc about a line.

Arc.reverse()

Reverse Arc entity.

Arc.rotate(centre_point, angle)

Rotate entity around a point for a given angle.

Arc.translate(x, y)

Translate Entity by specified x,y distances.

Attributes

Arc.centre

Get centre point of circle defining arc.

Arc.end_angle

Get angle of end point from centre point coordinates.

Arc.length

Get length of arc from start to end along circumference.

Arc.midpoint

Get midpoint of arc.

Arc.start_angle

Get angle of start point from centre point coordinates.

Arc.total_angle

Get arc sweep angle.