File headers: use SPDX license identifiers
[blender-addons.git] / io_import_dxf / dxfimport / fake_entities.py
blobb4357d58177d0eada6d9a5470fc8af85c4a0682f
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # <pep8 compliant>
6 class ArcEntity:
7 """
8 Used in convert.bulge_to_cubic() since bulges define how much a straight polyline segment should be transformed to
9 an arc. ArcEntity is just used to call do.arc() without having a real Arc-Entity from dxfgrabber.
10 """
11 def __init__(self, start, end, center, radius, angdir):
12 self.start_angle = start
13 self.end_angle = end
14 self.center = center
15 self.radius = radius
16 self.angdir = angdir
18 def __str__(self):
19 return "startangle: %s, endangle: %s, center: %s, radius: %s, angdir: %s" % \
20 (str(self.start_angle), str(self.end_angle), str(self.center), str(self.radius), str(self.angdir))
23 class LineEntity:
24 """
25 Used in do._gen_meshface()
26 """
27 def __init__(self, start, end):
28 self.start = start
29 self.end = end