From 382e055e9b2d3159de79e3f56ef452b538b51012 Mon Sep 17 00:00:00 2001 From: Sebastian Hoogen Date: Sun, 22 Jun 2014 16:46:55 +0200 Subject: [PATCH] + fixes #0001579: exportCSG.shape2polyhedron supplies wrong parameters to mesher --- src/Mod/OpenSCAD/exportCSG.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Mod/OpenSCAD/exportCSG.py b/src/Mod/OpenSCAD/exportCSG.py index 0b2df5e04..a9e0f5f75 100644 --- a/src/Mod/OpenSCAD/exportCSG.py +++ b/src/Mod/OpenSCAD/exportCSG.py @@ -93,12 +93,9 @@ def vertexs2polygon(vertex): def shape2polyhedron(shape): import MeshPart - fa = params.GetFloat('exportFa',12.0) - return mesh2polyhedron(MeshPart.meshFromShape(shape,params.GetFloat(\ - 'meshmaxlength',1.0), params.GetFloat('meshmaxarea',0.0),\ - params.GetFloat('meshlocallen',0.0),\ - params.GetFloat('meshdeflection',0.0))) - + return mesh2polyhedron(MeshPart.meshFromShape(Shape=shape,\ + Deflection= params.GetFloat('meshdeflection',0.0))) + def process_object(csg,ob): print "Placement"