Arch: small bugfixes and optimisations

This commit is contained in:
Yorik van Havre 2014-08-03 15:14:33 -03:00
parent b32b227733
commit c7bfaf2ed7
5 changed files with 12 additions and 32 deletions

View File

@ -335,6 +335,7 @@ class Component:
if not obj.Base.Shape.Wires[0].isClosed():
return obj.Base.Shape.copy()
elif not(obj.Base.Shape.Solids):
if hasattr(obj.Base.Shape,"CenterOfMass"):
p1 = obj.Base.Shape.CenterOfMass
v = self.getExtrusionVector(obj)
if v:

View File

@ -144,6 +144,7 @@ class _Space(ArchComponent.Component):
if obj.Base.isDerivedFrom("Part::Feature"):
if obj.Base.Shape.Solids:
shape = obj.Base.Shape.Solids[0].copy()
shape = shape.removeSplitter()
# 2: if not, add all bounding boxes of considered objects and build a first shape
if shape:

View File

@ -682,9 +682,7 @@ class _Window(ArchComponent.Component):
print "Arch: Bad formatting of window parts definitions"
base = self.processSubShapes(obj,base)
if base:
if not base.isNull():
obj.Shape = base
self.applyShape(obj,base,pl)
def getSubVolume(self,obj,plac=None):
"returns a subvolume for cutting in a base object"

File diff suppressed because one or more lines are too long

View File

@ -161,26 +161,6 @@
<string>IFC export</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="Gui::PrefCheckBox" name="gui::prefcheckbox_3">
<property name="toolTip">
<string>If this is checked, a text file will be exported together with the ifc file, containing the list of exported objects, for verification purposes.</string>
</property>
<property name="text">
<string>Save a list of exported objects</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>IfcExportList</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Arch</cstring>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>