This commit is contained in:
Thomas Krijnen
2014-06-27 12:24:49 +00:00
parent 92c5bb637b
commit 1c39eba3f7
+3 -3
View File
@@ -430,11 +430,11 @@ bool IfcGeom::convert(const IfcSchema::IfcMappedItem* l, IfcRepresentationShapeI
return b; return b;
} }
bool IfcGeom::convert(const IfcSchema::IfcShapeRepresentation::ptr l, IfcRepresentationShapeItems& shapes) { bool IfcGeom::convert(const IfcSchema::IfcShapeRepresentation* l, IfcRepresentationShapeItems& shapes) {
IfcSchema::IfcRepresentationItem::list items = l->Items(); IfcSchema::IfcRepresentationItem::list::ptr items = l->Items();
bool part_succes = false; bool part_succes = false;
if ( items->Size() ) { if ( items->Size() ) {
for ( IfcSchema::IfcRepresentationItem::it it = items->begin(); it != items->end(); ++ it ) { for ( IfcSchema::IfcRepresentationItem::list::it it = items->begin(); it != items->end(); ++ it ) {
IfcSchema::IfcRepresentationItem* representation_item = *it; IfcSchema::IfcRepresentationItem* representation_item = *it;
if ( IfcGeom::is_shape_collection(representation_item) ) { if ( IfcGeom::is_shape_collection(representation_item) ) {
part_succes |= IfcGeom::convert_shapes(*it, shapes); part_succes |= IfcGeom::convert_shapes(*it, shapes);