@@ -871,7 +871,7 @@ IfcGeom::BRepElement<P>* IfcGeom::Kernel::create_brep_for_representation_and_pro
871871 const std::string product_type = IfcSchema::Type::ToString (product->type ());
872872 ElementSettings element_settings (settings, getValue (GV_LENGTH_UNIT), product_type);
873873
874- if ( !settings.disable_opening_subtractions () && openings && openings->Size () ) {
874+ if ( !settings.disable_opening_subtractions () && openings && openings->size () ) {
875875 IfcGeom::IfcRepresentationShapeItems opened_shapes;
876876 try {
877877 if ( settings.faster_booleans () ) {
@@ -921,15 +921,15 @@ IfcSchema::IfcObjectDefinition* IfcGeom::Kernel::get_decomposing_entity(IfcSchem
921921 if ( product->is (IfcSchema::Type::IfcOpeningElement ) ) {
922922 IfcSchema::IfcOpeningElement* opening = (IfcSchema::IfcOpeningElement*)product;
923923 IfcSchema::IfcRelVoidsElement::list::ptr voids = opening->VoidsElements ();
924- if ( voids->Size () ) {
924+ if ( voids->size () ) {
925925 IfcSchema::IfcRelVoidsElement* ifc_void = *voids->begin ();
926926 parent = ifc_void->RelatingBuildingElement ();
927927 }
928928 } else if ( product->is (IfcSchema::Type::IfcElement ) ) {
929929 IfcSchema::IfcElement* element = (IfcSchema::IfcElement*)product;
930930 IfcSchema::IfcRelFillsElement::list::ptr fills = element->FillsVoids ();
931931 // Incase of a RelatedBuildingElement parent to the opening element
932- if ( fills->Size () ) {
932+ if ( fills->size () ) {
933933 for ( IfcSchema::IfcRelFillsElement::list::it it = fills->begin (); it != fills->end (); ++ it ) {
934934 IfcSchema::IfcRelFillsElement* fill = *it;
935935 IfcSchema::IfcObjectDefinition* ifc_objectdef = fill->RelatingOpeningElement ();
@@ -940,16 +940,16 @@ IfcSchema::IfcObjectDefinition* IfcGeom::Kernel::get_decomposing_entity(IfcSchem
940940 // Else simply parent to the containing structure
941941 if (!parent) {
942942 IfcSchema::IfcRelContainedInSpatialStructure::list::ptr parents = element->ContainedInStructure ();
943- if ( parents->Size () ) {
943+ if ( parents->size () ) {
944944 IfcSchema::IfcRelContainedInSpatialStructure* container = *parents->begin ();
945945 parent = container->RelatingStructure ();
946946 }
947947 }
948948 }
949949 // Parent decompositions to the RelatingObject
950950 if (!parent) {
951- IfcEntityList::ptr parents = product->entity ->getInverse (IfcSchema::Type::IfcRelAggregates);
952- parents->push (product->entity ->getInverse (IfcSchema::Type::IfcRelNests));
951+ IfcEntityList::ptr parents = product->entity ->getInverse (IfcSchema::Type::IfcRelAggregates, - 1 );
952+ parents->push (product->entity ->getInverse (IfcSchema::Type::IfcRelNests, - 1 ));
953953 for ( IfcEntityList::it it = parents->begin (); it != parents->end (); ++ it ) {
954954 IfcSchema::IfcRelDecomposes* decompose = (IfcSchema::IfcRelDecomposes*)*it;
955955 IfcSchema::IfcObjectDefinition* ifc_objectdef;
@@ -982,7 +982,7 @@ std::pair<std::string, double> IfcGeom::Kernel::initializeUnits(IfcSchema::IfcUn
982982
983983 try {
984984 IfcEntityList::ptr units = unit_assignment->Units ();
985- if (!units || !units->Size ()) {
985+ if (!units || !units->size ()) {
986986 Logger::Message (Logger::LOG_ERROR, " No unit information found" );
987987 } else {
988988 for ( IfcEntityList::it it = units->begin (); it != units->end (); ++ it ) {
0 commit comments