Arch: Added setting to limit areas calculations for large objects

This commit is contained in:
Yorik van Havre
2018-04-30 17:39:11 -03:00
parent fff7c03287
commit 52f4375625
2 changed files with 50 additions and 2 deletions

View File

@@ -685,6 +685,9 @@ class Component:
if not obj.Shape.Faces:
return
import Drawing,Part
fmax = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Arch").GetInt("MaxComputeAreas",20)
if len(obj.Shape.Faces) > fmax:
return
a = 0
fset = []
for i,f in enumerate(obj.Shape.Faces):