diff --git a/src/ifcparse/IfcGeomShapes.cpp b/src/ifcparse/IfcGeomShapes.cpp index 5b83b73b70..0cae8f98f7 100644 --- a/src/ifcparse/IfcGeomShapes.cpp +++ b/src/ifcparse/IfcGeomShapes.cpp @@ -130,7 +130,7 @@ bool IfcGeom::convert(const Ifc2x3::IfcPolygonalBoundedHalfSpace::ptr& l, TopoDS convert(l->Position(),trsf); TopoDS_Shape extrusion = BRepPrimAPI_MakePrism(BRepBuilderAPI_MakeFace(wire),gp_Vec(0,0,20000.0)); gp_Trsf down; down.SetTranslation(gp_Vec(0,0,-10000.0)); - extrusion.Move(trsf*down); + extrusion.Move(down*trsf); shape = BRepAlgoAPI_Cut(extrusion,halfspace); return true; } diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index 0068e31346..a25115753e 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -363,7 +363,9 @@ TokenArgument::operator std::vector() const { throw IfcException("Argumen TokenArgument::operator std::vector() const { throw IfcException("Argument is not a list of ints"); } TokenArgument::operator std::vector() const { throw IfcException("Argument is not a list of strings"); } TokenArgument::operator IfcUtil::IfcSchemaEntity() const { return Ifc::EntityById(TokenFunc::asInt(token)); } -TokenArgument::operator SHARED_PTR() const { return SHARED_PTR( new IfcUtil::IfcEntitySelect(*this) ); } +TokenArgument::operator SHARED_PTR() const { + return SHARED_PTR( new IfcUtil::IfcEntitySelect(*this) ); +} TokenArgument::operator IfcEntities() const { throw IfcException("Argument is not a list of entities"); } unsigned int TokenArgument::Size() const { return 1; } ArgumentPtr TokenArgument::operator [] (unsigned int i) const { throw IfcException("Argument is not a list of arguments"); } @@ -379,8 +381,12 @@ EntityArgument::operator std::string() const { throw IfcException("Argument is n EntityArgument::operator std::vector() const { throw IfcException("Argument is not a list of floats"); } EntityArgument::operator std::vector() const { throw IfcException("Argument is not a list of ints"); } EntityArgument::operator std::vector() const { throw IfcException("Argument is not a list of strings"); } -EntityArgument::operator IfcUtil::IfcSchemaEntity() const { return entity; } -EntityArgument::operator SHARED_PTR() const { return SHARED_PTR( new IfcUtil::IfcArgumentSelect(entity->type(),entity->entity->getArgument(0)) ); } +EntityArgument::operator IfcUtil::IfcSchemaEntity() const { + return SHARED_PTR( new IfcUtil::IfcArgumentSelect(entity->type(),entity->entity->getArgument(0)) ); +} +EntityArgument::operator SHARED_PTR() const { + return SHARED_PTR( new IfcUtil::IfcArgumentSelect(entity->type(),entity->entity->getArgument(0)) ); +} EntityArgument::operator IfcEntities() const { throw IfcException("Argument is not a list of entities"); } unsigned int EntityArgument::Size() const { return 1; } ArgumentPtr EntityArgument::operator [] (unsigned int i) const { throw IfcException("Argument is not a list of arguments"); }