From 042d4d9eaa8df777b016ce54ba616e4040a8e488 Mon Sep 17 00:00:00 2001 From: Jean-Marie Verdun Date: Mon, 7 Oct 2019 22:21:09 +0200 Subject: [PATCH] Tweak meshing parameters (lower triangles count) --- src/Mod/Arch/importOBJ.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Arch/importOBJ.py b/src/Mod/Arch/importOBJ.py index a20bb19138..6df61f69e0 100644 --- a/src/Mod/Arch/importOBJ.py +++ b/src/Mod/Arch/importOBJ.py @@ -75,13 +75,13 @@ def getIndices(obj,shape,offsetv,offsetvn): if not curves: myshape = obj.Shape.copy(False) myshape.Placement=obj.getGlobalPlacement() - mesh=MeshPart.meshFromShape(Shape=myshape, LinearDeflection=0.1, AngularDeflection=0.523599, Relative=False) + mesh=MeshPart.meshFromShape(Shape=myshape, LinearDeflection=0.1, AngularDeflection=0.7, Relative=True) FreeCAD.Console.PrintWarning(translate("Arch","Found a shape containing curves, triangulating")+"\n") break except: # unimplemented curve type myshape = obj.Shape.copy(False) myshape.Placement=obj.getGlobalPlacement() - mesh=MeshPart.meshFromShape(Shape=myshape, LinearDeflection=0.1, AngularDeflection=0.523599, Relative=False) + mesh=MeshPart.meshFromShape(Shape=myshape, LinearDeflection=0.1, AngularDeflection=0.7, Relative=True) FreeCAD.Console.PrintWarning(translate("Arch","Found a shape containing curves, triangulating")+"\n") break elif isinstance(shape,Mesh.Mesh):