Source code for pyleecan.Methods.Geometry.Circle.get_lines
# -*- coding: utf-8 -*-
from ....Classes.Arc3 import Arc3
[docs]def get_lines(self):
"""Get the lines needed to draw the surface (2 Arc3)
Parameters
----------
self : Circle
A circle Object
Returns
-------
line_list: list
Two arcs to draw the circle
"""
# check if the circle is correct
self.check()
begin = self.center + self.radius
end = self.center - self.radius
# first half-circle
line1 = Arc3(begin, end, True, prop_dict=self.prop_dict)
# second half-circle
line2 = Arc3(end, begin, True, prop_dict=self.prop_dict)
return [line1, line2]