Arc#

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

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

Parameters:
startCoordinate

Start coordinate.

endCoordinate

End coordinate.

centre :Coordinate

Centre coordinate.

radiusfloat

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_coordinate_from_distance(...)

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

Arc.get_coordinate_from_percentage_distance(...)

Get the coordinate at the percentage distance along the arc from the reference coord.

Arc.mirror(mirror_line)

Mirror arc about a line.

Arc.reverse()

Reverse Arc entity.

Attributes

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.