- IfcGeom: Major performance improvement by only sewing faces of IfcConnectedFaceSets when needed for boolean operations

- Automatic tests for several well known IFC files on the Internet
- IfcBlender: Make visibility in render consistent with 3d view
- Some compatibility for Ifc2x files with IfcShapeRepresentations and RepresentationIdentifier 'IAI'
This commit is contained in:
Thomas Krijnen
2012-03-01 21:17:06 +00:00
parent a9a5f8dc69
commit 2b27b86b34
7 changed files with 395 additions and 12 deletions
@@ -78,6 +78,7 @@ def import_ifc(filename, use_names, process_relations):
else:
valid_file = IfcImport.Init(filename)
if not valid_file:
IfcImport.CleanUp()
return False
print("Done reading file")
id_to_object = {}
@@ -136,6 +137,7 @@ def import_ifc(filename, use_names, process_relations):
ob.id, ob_guid, ob_name, ob_type
bob.hide = ob_type == 'IfcSpace' or ob_type == 'IfcOpeningElement'
bob.hide_render = bob.hide
if ob.id not in id_to_object: id_to_object[ob.id] = []
id_to_object[ob.id].append(bob)