Scenario: Load project elements - all georeferencing coordinate situations - disabled false origin mode
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"DISABLED"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"False"
And theobject"IfcSite/MySite"isat"0,0,0"
And theobject"IfcBuilding/MyBuilding"isat"0,0,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,0,0"
And theobject"IfcActuator/A"isat"7,3,0"
And theobject"IfcActuator/B"isat"6,1,0"
And theobject"IfcActuator/C"isat"0,0,0"
And theobject"IfcActuator/D"isat"13,4,-1"
And theobject"IfcActuator/E"isat"6,3,0"
And theobject"IfcActuator/F"isat"3,3,0"
And theobject"IfcActuator/G"isat"15,6,-1"
And theobject"IfcActuator/H"isat"9,2,0"
And theobject"IfcActuator/I"isat"3,3,0"
And theobject"IfcActuator/J"isat"11,3,-1"
And theobject"IfcActuator/K"isat"10,0,0"
Scenario: Load project elements - all georeferencing coordinate situations - automatic false origin mode
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"AUTOMATIC"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"True"
And "scene.BIMGeoreferenceProperties.blender_eastings"is"13000.0"
And "scene.BIMGeoreferenceProperties.blender_northings"is"4000.0"
And "scene.BIMGeoreferenceProperties.blender_orthogonal_height"is"-1000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_x"is"13000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_y"is"4000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_z"is"-1000.0"
And theobject"IfcSite/MySite"isat"0,0,0"
And theobject"IfcBuilding/MyBuilding"isat"0,0,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,0,0"
And theobject"IfcActuator/A"isat"-6,-1,1"
And theobject"IfcActuator/B"isat"-7,-3,1"
And theobject"IfcActuator/C"isat"0,0,0"
And theobject"IfcActuator/D"isat"0,0,0"
And theobject"IfcActuator/E"isat"-7,-1,1"
And theobject"IfcActuator/F"isat"-10,-1,1"
And theobject"IfcActuator/G"isat"2,2,0"
And theobject"IfcActuator/H"isat"-4,-2,1"
And theobject"IfcActuator/I"isat"-10,-1,1"
And theobject"IfcActuator/J"isat"-2,-1,0"
And theobject"IfcActuator/K"isat"-3,-4,1"
Scenario: Load project elements - all georeferencing coordinate situations - manual false origin mode
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"MANUAL"
When Iset"scene.BIMProjectProperties.false_origin"to"10000,0,0"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"True"
And "scene.BIMGeoreferenceProperties.blender_eastings"is"10000.0"
And "scene.BIMGeoreferenceProperties.blender_northings"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_orthogonal_height"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_x"is"10000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_y"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_z"is"0.0"
And theobject"IfcSite/MySite"isat"0,0,0"
And theobject"IfcBuilding/MyBuilding"isat"0,0,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,0,0"
And theobject"IfcActuator/A"isat"-3,3,0"
And theobject"IfcActuator/B"isat"-4,1,0"
And theobject"IfcActuator/C"isat"0,0,0"
And theobject"IfcActuator/D"isat"3,4,-1"
And theobject"IfcActuator/E"isat"-4,3,0"
And theobject"IfcActuator/F"isat"-7,3,0"
And theobject"IfcActuator/G"isat"5,6,-1"
And theobject"IfcActuator/H"isat"-1,2,0"
And theobject"IfcActuator/I"isat"-7,3,0"
And theobject"IfcActuator/J"isat"1,3,-1"
And theobject"IfcActuator/K"isat"0,0,0"
And theobject"IfcActuator/D"hasacartesianpointoffsetof"31,4,-1"
And theobject"IfcActuator/G"hasacartesianpointoffsetof"-25,6,-1"
And theobject"IfcActuator/J"hasacartesianpointoffsetof"11,3,-1"
And theobject"IfcActuator/D"hasavertexat"3,2,-1"
And theobject"IfcActuator/D"hasavertexat"5,2,-1"
And theobject"IfcActuator/G"hasavertexat"5,4,-1"
And theobject"IfcActuator/G"hasavertexat"7,4,-1"
And theobject"IfcActuator/J"hasavertexat"1,1,-1"
And theobject"IfcActuator/J"hasavertexat"3,1,-1"
Scenario: Load project elements - all georeferencing coordinate situations with an offset site - disabled false origin mode
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation-offsetsite.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"DISABLED"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"False"
And theobject"IfcSite/MySite"isat"0,10,0"
And theobject"IfcBuilding/MyBuilding"isat"0,10,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,10,0"
And theobject"IfcActuator/A"isat"5.985,14.71,0"
And theobject"IfcActuator/B"isat"5.5367,12.519,0"
And theobject"IfcActuator/C"isat"0,10,0"
And theobject"IfcActuator/D"isat"11.522,17.228,-1"
And theobject"IfcActuator/E"isat"5.0191,14.451,0"
And theobject"IfcActuator/F"isat"2.1213,13.674,0"
And theobject"IfcActuator/G"isat"12.936,19.678,-1"
And theobject"IfcActuator/H"isat"8.1757,14.261,0"
And theobject"IfcActuator/I"isat"2.1213,13.674,0"
And theobject"IfcActuator/J"isat"9.8487,15.745,-1"
And theobject"IfcActuator/K"isat"9.6593,12.588,0"
Scenario: Load project elements - all georeferencing coordinate situations with an offset site - automatic false origin mode
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation-offsetsite.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"AUTOMATIC"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"True"
And "scene.BIMGeoreferenceProperties.blender_eastings"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_northings"is"10000.0"
And "scene.BIMGeoreferenceProperties.blender_orthogonal_height"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_x"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_y"is"10000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_z"is"0.0"
And theobject"IfcSite/MySite"isat"0,0,0"
And theobject"IfcBuilding/MyBuilding"isat"0,0,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,0,0"
And theobject"IfcActuator/A"isat"7,3,0"
And theobject"IfcActuator/B"isat"6,1,0"
And theobject"IfcActuator/C"isat"0,0,0"
And theobject"IfcActuator/D"isat"13,4,-1"
And theobject"IfcActuator/E"isat"6,3,0"
And theobject"IfcActuator/F"isat"3,3,0"
And theobject"IfcActuator/G"isat"15,6,-1"
And theobject"IfcActuator/H"isat"9,2,0"
And theobject"IfcActuator/I"isat"3,3,0"
And theobject"IfcActuator/J"isat"11,3,-1"
And theobject"IfcActuator/K"isat"10,0,0"
Scenario: Load project elements - all georeferencing coordinate situations with an offset site - manual false origin mode
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation-offsetsite.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"MANUAL"
When Iset"scene.BIMProjectProperties.false_origin"to"0,10000,0"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"True"
And "scene.BIMGeoreferenceProperties.blender_eastings"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_northings"is"10000.0"
And "scene.BIMGeoreferenceProperties.blender_orthogonal_height"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_x"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_y"is"10000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_z"is"0.0"
And theobject"IfcSite/MySite"isat"0,0,0"
And theobject"IfcBuilding/MyBuilding"isat"0,0,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,0,0"
And theobject"IfcActuator/A"isat"5.985,4.71,0"
And theobject"IfcActuator/B"isat"5.5367,2.519,0"
And theobject"IfcActuator/C"isat"0,0,0"
And theobject"IfcActuator/D"isat"11.522,7.228,-1"
And theobject"IfcActuator/E"isat"5.0191,4.451,0"
And theobject"IfcActuator/F"isat"2.1213,3.674,0"
And theobject"IfcActuator/G"isat"12.936,9.678,-1"
And theobject"IfcActuator/H"isat"8.1757,4.261,0"
And theobject"IfcActuator/I"isat"2.1213,3.674,0"
And theobject"IfcActuator/J"isat"9.8487,5.745,-1"
And theobject"IfcActuator/K"isat"9.6593,2.588,0"
And theobject"IfcActuator/D"hasacartesianpointoffsetof"31,4,-1"
And theobject"IfcActuator/G"hasacartesianpointoffsetof"-25,6,-1"
And theobject"IfcActuator/J"hasacartesianpointoffsetof"11,3,-1"
And theobject"IfcActuator/D"hasavertexat"12.039,5.296,-1"
And theobject"IfcActuator/D"hasavertexat"13.971,5.814,-1"
And theobject"IfcActuator/G"hasavertexat"13.454,7.746,-1"
And theobject"IfcActuator/G"hasavertexat"15.385,8.264,-1"
And theobject"IfcActuator/J"hasavertexat"10.366,3.813,-1"
And theobject"IfcActuator/J"hasavertexat"12.298,4.331,-1"
Scenario: Load project elements - all georeferencing coordinate situations with a map conversion - disabled false origin mode (this should be identical to the situation with no map conversion)
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"DISABLED"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"False"
And theobject"IfcSite/MySite"isat"0,0,0"
And theobject"IfcBuilding/MyBuilding"isat"0,0,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,0,0"
And theobject"IfcActuator/A"isat"7,3,0"
And theobject"IfcActuator/B"isat"6,1,0"
And theobject"IfcActuator/C"isat"0,0,0"
And theobject"IfcActuator/D"isat"13,4,-1"
And theobject"IfcActuator/E"isat"6,3,0"
And theobject"IfcActuator/F"isat"3,3,0"
And theobject"IfcActuator/G"isat"15,6,-1"
And theobject"IfcActuator/H"isat"9,2,0"
And theobject"IfcActuator/I"isat"3,3,0"
And theobject"IfcActuator/J"isat"11,3,-1"
And theobject"IfcActuator/K"isat"10,0,0"
Scenario: Load project elements - all georeferencing coordinate situations with a map conversion - automatic false origin mode (this should affect the Blender eastings and northings, which is now different to the Blender offset XYZ, but is otherwise identical to the non-map conversion variant)
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"AUTOMATIC"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"True"
And "scene.BIMGeoreferenceProperties.blender_eastings"is"28000.0"
And "scene.BIMGeoreferenceProperties.blender_northings"is"4000.0"
And "scene.BIMGeoreferenceProperties.blender_orthogonal_height"is"-1000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_x"is"13000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_y"is"4000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_z"is"-1000.0"
And theobject"IfcSite/MySite"isat"0,0,0"
And theobject"IfcBuilding/MyBuilding"isat"0,0,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,0,0"
And theobject"IfcActuator/A"isat"-6,-1,1"
And theobject"IfcActuator/B"isat"-7,-3,1"
And theobject"IfcActuator/C"isat"0,0,0"
And theobject"IfcActuator/D"isat"0,0,0"
And theobject"IfcActuator/E"isat"-7,-1,1"
And theobject"IfcActuator/F"isat"-10,-1,1"
And theobject"IfcActuator/G"isat"2,2,0"
And theobject"IfcActuator/H"isat"-4,-2,1"
And theobject"IfcActuator/I"isat"-10,-1,1"
And theobject"IfcActuator/J"isat"-2,-1,0"
And theobject"IfcActuator/K"isat"-3,-4,1"
Scenario: Load project elements - all georeferencing coordinate situations with a map conversion - manual false origin mode (this should affect the Blender eastings and northings, which is now different to the Blender offset XYZ, but is otherwise identical to the non-map conversion variant)
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"MANUAL"
When Iset"scene.BIMProjectProperties.false_origin"to"25000,0,0"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"True"
And "scene.BIMGeoreferenceProperties.blender_eastings"is"25000.0"
And "scene.BIMGeoreferenceProperties.blender_northings"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_orthogonal_height"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_x"is"10000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_y"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_z"is"0.0"
And theobject"IfcSite/MySite"isat"0,0,0"
And theobject"IfcBuilding/MyBuilding"isat"0,0,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,0,0"
And theobject"IfcActuator/A"isat"-3,3,0"
And theobject"IfcActuator/B"isat"-4,1,0"
And theobject"IfcActuator/C"isat"0,0,0"
And theobject"IfcActuator/D"isat"3,4,-1"
And theobject"IfcActuator/E"isat"-4,3,0"
And theobject"IfcActuator/F"isat"-7,3,0"
And theobject"IfcActuator/G"isat"5,6,-1"
And theobject"IfcActuator/H"isat"-1,2,0"
And theobject"IfcActuator/I"isat"-7,3,0"
And theobject"IfcActuator/J"isat"1,3,-1"
And theobject"IfcActuator/K"isat"0,0,0"
And theobject"IfcActuator/D"hasacartesianpointoffsetof"31,4,-1"
And theobject"IfcActuator/G"hasacartesianpointoffsetof"-25,6,-1"
And theobject"IfcActuator/J"hasacartesianpointoffsetof"11,3,-1"
And theobject"IfcActuator/D"hasavertexat"3,2,-1"
And theobject"IfcActuator/D"hasavertexat"5,2,-1"
And theobject"IfcActuator/G"hasavertexat"5,4,-1"
And theobject"IfcActuator/G"hasavertexat"7,4,-1"
And theobject"IfcActuator/J"hasavertexat"1,1,-1"
And theobject"IfcActuator/J"hasavertexat"3,1,-1"
Scenario: Load project elements - all georeferencing coordinate situations with map conversion and an offset site - disabled false origin mode
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion-offsetsite.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"DISABLED"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"False"
And theobject"IfcSite/MySite"isat"0,10,0"
And theobject"IfcBuilding/MyBuilding"isat"0,10,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,10,0"
And theobject"IfcActuator/A"isat"5.985,14.71,0"
And theobject"IfcActuator/B"isat"5.5367,12.519,0"
And theobject"IfcActuator/C"isat"0,10,0"
And theobject"IfcActuator/D"isat"11.522,17.228,-1"
And theobject"IfcActuator/E"isat"5.0191,14.451,0"
And theobject"IfcActuator/F"isat"2.1213,13.674,0"
And theobject"IfcActuator/G"isat"12.936,19.678,-1"
And theobject"IfcActuator/H"isat"8.1757,14.261,0"
And theobject"IfcActuator/I"isat"2.1213,13.674,0"
And theobject"IfcActuator/J"isat"9.8487,15.745,-1"
And theobject"IfcActuator/K"isat"9.6593,12.588,0"
Scenario: Load project elements - all georeferencing coordinate situations with map conversion and an offset site - automatic false origin mode
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion-offsetsite.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"AUTOMATIC"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"True"
And "scene.BIMGeoreferenceProperties.blender_eastings"is"15000.0"
And "scene.BIMGeoreferenceProperties.blender_northings"is"10000.0"
And "scene.BIMGeoreferenceProperties.blender_orthogonal_height"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_x"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_y"is"10000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_z"is"0.0"
And theobject"IfcSite/MySite"isat"0,0,0"
And theobject"IfcBuilding/MyBuilding"isat"0,0,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,0,0"
And theobject"IfcActuator/A"isat"7,3,0"
And theobject"IfcActuator/B"isat"6,1,0"
And theobject"IfcActuator/C"isat"0,0,0"
And theobject"IfcActuator/D"isat"13,4,-1"
And theobject"IfcActuator/E"isat"6,3,0"
And theobject"IfcActuator/F"isat"3,3,0"
And theobject"IfcActuator/G"isat"15,6,-1"
And theobject"IfcActuator/H"isat"9,2,0"
And theobject"IfcActuator/I"isat"3,3,0"
And theobject"IfcActuator/J"isat"11,3,-1"
And theobject"IfcActuator/K"isat"10,0,0"
Scenario: Load project elements - all georeferencing coordinate situations with map conversion and an offset site - manual false origin mode
Given anemptyBlendersession
And Ipress"bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion-offsetsite.ifc',is_advanced=True)"
When Iset"scene.BIMProjectProperties.false_origin_mode"to"MANUAL"
When Iset"scene.BIMProjectProperties.false_origin"to"15000,10000,0"
When Iset"scene.BIMProjectProperties.distance_limit"to"5"
And Ipress"bim.load_project_elements"
Then "scene.BIMGeoreferenceProperties.has_blender_offset"is"True"
And "scene.BIMGeoreferenceProperties.blender_eastings"is"15000.0"
And "scene.BIMGeoreferenceProperties.blender_northings"is"10000.0"
And "scene.BIMGeoreferenceProperties.blender_orthogonal_height"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_x"is"0.0"
And "scene.BIMGeoreferenceProperties.blender_offset_y"is"10000.0"
And "scene.BIMGeoreferenceProperties.blender_offset_z"is"0.0"
And theobject"IfcSite/MySite"isat"0,0,0"
And theobject"IfcBuilding/MyBuilding"isat"0,0,0"
And theobject"IfcBuildingStorey/MyStorey"isat"0,0,0"
And theobject"IfcActuator/A"isat"5.985,4.71,0"
And theobject"IfcActuator/B"isat"5.5367,2.519,0"
And theobject"IfcActuator/C"isat"0,0,0"
And theobject"IfcActuator/D"isat"11.522,7.228,-1"
And theobject"IfcActuator/E"isat"5.0191,4.451,0"
And theobject"IfcActuator/F"isat"2.1213,3.674,0"
And theobject"IfcActuator/G"isat"12.936,9.678,-1"
And theobject"IfcActuator/H"isat"8.1757,4.261,0"
And theobject"IfcActuator/I"isat"2.1213,3.674,0"
And theobject"IfcActuator/J"isat"9.8487,5.745,-1"
And theobject"IfcActuator/K"isat"9.6593,2.588,0"
And theobject"IfcActuator/D"hasacartesianpointoffsetof"31,4,-1"
And theobject"IfcActuator/G"hasacartesianpointoffsetof"-25,6,-1"
And theobject"IfcActuator/J"hasacartesianpointoffsetof"11,3,-1"
And theobject"IfcActuator/D"hasavertexat"12.039,5.296,-1"
And theobject"IfcActuator/D"hasavertexat"13.971,5.814,-1"
And theobject"IfcActuator/G"hasavertexat"13.454,7.746,-1"
And theobject"IfcActuator/G"hasavertexat"15.385,8.264,-1"
And theobject"IfcActuator/J"hasavertexat"10.366,3.813,-1"
And theobject"IfcActuator/J"hasavertexat"12.298,4.331,-1"