- Parsing: make argument out of range errors catchable

- Geometry: support for IfcLine
- Geometry: more correct initialization of placements
This commit is contained in:
Thomas Krijnen
2011-06-17 13:07:06 +00:00
parent a7ed78c4a8
commit 1040a5ef6e
4 changed files with 101 additions and 37 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ IfcGeomObjects::IfcGeomObject* _get() {
const IfcEntity ifcshape = *it;
if ( ifcshape->dt == IfcSchema::Enum::IfcMappedItem ) continue;
TopoDS_Shape ss;
if ( IfcGeom::convert_shape(ifcshape,ss) ) {
if ( IfcGeom::convert_shape(ifcshape,ss) && ! ss.IsNull() ) {
builder.Add(shapes,ss);
hasShapes = true;
#ifdef _DEBUG