From 970f9c193d9e5144fd016eb580f6b3012e1b34db Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sat, 21 Dec 2013 19:53:39 -0200 Subject: [PATCH] Arch: small bugfix to ifc exporter --- src/Mod/Arch/ifcWriter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Arch/ifcWriter.py b/src/Mod/Arch/ifcWriter.py index f07b8e2e7..00cc6a685 100644 --- a/src/Mod/Arch/ifcWriter.py +++ b/src/Mod/Arch/ifcWriter.py @@ -86,13 +86,13 @@ def getTuple(vec): """getTuple(vec): returns a tuple from other coordinate structures: tuple, list, 3d vector, or occ vertex""" if isinstance(vec,tuple): - return vec + return tuple([float(v) for v in vec]) elif isinstance(vec,list): - return tuple(vec) + return tuple([float(v) for v in vec]) elif hasattr(vec,"x") and hasattr(vec,"y") and hasattr(vec,"z"): - return (vec.x,vec.y,vec.z) + return (float(vec.x),float(vec.y),float(vec.z)) elif hasattr(vec,"X") and hasattr(vec,"Y") and hasattr(vec,"Z"): - return (vec.X,vec.Y,vec.Z) + return (float(vec.X),float(vec.Y),float(vec.Z)) def getValueAndDirection(vec): """getValueAndDirection(vec): returns a length and a tuple