Arch: Minor fix in OBJ exporter - fixes #2216
This commit is contained in:
parent
0b44729bbe
commit
53eb0dd758
|
@ -44,10 +44,16 @@ def getIndices(shape,offset):
|
|||
flist = []
|
||||
curves = None
|
||||
for e in shape.Edges:
|
||||
if not isinstance(e.Curve,Part.Line):
|
||||
if not curves:
|
||||
curves = shape.tessellate(1)
|
||||
FreeCAD.Console.PrintWarning(translate("Arch","Found a shape containing curves, triangulating\n"))
|
||||
try:
|
||||
if not isinstance(e.Curve,Part.Line):
|
||||
if not curves:
|
||||
curves = shape.tessellate(1)
|
||||
FreeCAD.Console.PrintWarning(translate("Arch","Found a shape containing curves, triangulating\n"))
|
||||
break
|
||||
except: # unimplemented curve type
|
||||
curves = shape.tessellate(1)
|
||||
FreeCAD.Console.PrintWarning(translate("Arch","Found a shape containing curves, triangulating\n"))
|
||||
break
|
||||
if curves:
|
||||
for v in curves[0]:
|
||||
vlist.append(" "+str(round(v.x,p))+" "+str(round(v.y,p))+" "+str(round(v.z,p)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user