1
from base_exporter import BasePrimitiveDXFExporter
4
class ViewBorderDXFExporter(BasePrimitiveDXFExporter):
6
def export(self, ob, mx, mw, **common):
7
"""converts Lamp-Object to desired projection and representation(DXF-Entity type)
9
identity_matrix = mathutils.Matrix().identity()
10
points = projected_co(border, identity_matrix)
12
points = toGlobalOrigin(points)
13
c = settings['curve_as']
14
if c=="LINEs": # export Curve as multiple LINEs
15
for i in range(len(points)-1):
16
linepoints = [points[i], points[i+1]]
17
dxfLINE = DXF.Line(linepoints,paperspace=espace,color=LAYERCOLOR_DEF)
18
entities.append(dxfLINE)
20
fag70, flag75 = closed, 0
21
dxfPOLYFACE = DXF.PolyLine([allpoints, faces], flag70=flag70, flag75=flag70, width=0.0, paperspace=espace, color=LAYERCOLOR_DEF)
22
#dxfPLINE = DXF.PolyLine(points,points[0],[closed,0,0], paperspace=espace, color=LAYERCOLOR_DEF)