| 1 |
@project |
| 2 |
Feature: Project |
| 3 |
|
| 4 |
Scenario: Create project |
| 5 |
Given an empty Blender session |
| 6 |
When I press "bim.create_project" |
| 7 |
Then an IFC file exists |
| 8 |
And the object "IfcProject/My Project" is an "IfcProject" |
| 9 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 10 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 11 |
And the object "IfcBuildingStorey/My Storey" is an "IfcBuildingStorey" |
| 12 |
And the object "IfcProject/My Project" is in the collection "IfcProject/My Project" |
| 13 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 14 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 15 |
And the object "IfcBuildingStorey/My Storey" is in the collection "IfcBuildingStorey/My Storey" |
| 16 |
|
| 17 |
Scenario: Create project - IFC2X3 |
| 18 |
Given an empty Blender session |
| 19 |
And I set "scene.BIMProjectProperties.export_schema" to "IFC2X3" |
| 20 |
When I press "bim.create_project" |
| 21 |
Then an IFC file exists |
| 22 |
And the object "IfcProject/My Project" is an "IfcProject" |
| 23 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 24 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 25 |
And the object "IfcBuildingStorey/My Storey" is an "IfcBuildingStorey" |
| 26 |
And the object "IfcProject/My Project" is in the collection "IfcProject/My Project" |
| 27 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 28 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 29 |
And the object "IfcBuildingStorey/My Storey" is in the collection "IfcBuildingStorey/My Storey" |
| 30 |
|
| 31 |
Scenario: New project - metric (m) preset |
| 32 |
Given an empty Blender session |
| 33 |
When I press "bim.new_project(preset='metric_m')" |
| 34 |
Then an IFC file exists |
| 35 |
And the object "IfcProject/My Project" is an "IfcProject" |
| 36 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 37 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 38 |
And the object "IfcBuildingStorey/My Storey" is an "IfcBuildingStorey" |
| 39 |
And the object "IfcProject/My Project" is in the collection "IfcProject/My Project" |
| 40 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 41 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 42 |
And the object "IfcBuildingStorey/My Storey" is in the collection "IfcBuildingStorey/My Storey" |
| 43 |
|
| 44 |
Scenario: New project - metric (mm) preset |
| 45 |
Given an empty Blender session |
| 46 |
When I press "bim.new_project(preset='metric_mm')" |
| 47 |
Then an IFC file exists |
| 48 |
And the object "IfcProject/My Project" is an "IfcProject" |
| 49 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 50 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 51 |
And the object "IfcBuildingStorey/My Storey" is an "IfcBuildingStorey" |
| 52 |
And the object "IfcProject/My Project" is in the collection "IfcProject/My Project" |
| 53 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 54 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 55 |
And the object "IfcBuildingStorey/My Storey" is in the collection "IfcBuildingStorey/My Storey" |
| 56 |
|
| 57 |
Scenario: New project - imperial (ft) preset |
| 58 |
Given an empty Blender session |
| 59 |
When I press "bim.new_project(preset='imperial_ft')" |
| 60 |
Then an IFC file exists |
| 61 |
And the object "IfcProject/My Project" is an "IfcProject" |
| 62 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 63 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 64 |
And the object "IfcBuildingStorey/My Storey" is an "IfcBuildingStorey" |
| 65 |
And the object "IfcProject/My Project" is in the collection "IfcProject/My Project" |
| 66 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 67 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 68 |
And the object "IfcBuildingStorey/My Storey" is in the collection "IfcBuildingStorey/My Storey" |
| 69 |
|
| 70 |
Scenario: New project - demo preset |
| 71 |
Given an empty Blender session |
| 72 |
When I press "bim.new_project(preset='demo')" |
| 73 |
Then an IFC file exists |
| 74 |
And the object "IfcProject/My Project" is an "IfcProject" |
| 75 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 76 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 77 |
And the object "IfcBuildingStorey/My Storey" is an "IfcBuildingStorey" |
| 78 |
And the object "IfcProject/My Project" is in the collection "IfcProject/My Project" |
| 79 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 80 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 81 |
And the object "IfcBuildingStorey/My Storey" is in the collection "IfcBuildingStorey/My Storey" |
| 82 |
And the object "IfcBeamType/B1" is an "IfcBeamType" |
| 83 |
And the object "IfcWallType/WAL50" is an "IfcWallType" |
| 84 |
|
| 85 |
Scenario: New project - wizard |
| 86 |
Given an empty Blender session |
| 87 |
When I press "bim.new_project(preset='wizard')" |
| 88 |
Then an IFC file does not exist |
| 89 |
And the object "IfcProject/My Project" does not exist |
| 90 |
|
| 91 |
Scenario: Append library element |
| 92 |
Given an empty IFC project |
| 93 |
When I press "bim.select_library_file(filepath='{cwd}/test/files/basic.ifc')" |
| 94 |
And I press "bim.change_library_element(element_name='IfcTypeProduct')" |
| 95 |
And I press "bim.change_library_element(element_name='IfcSlabType')" |
| 96 |
And I press "bim.append_library_element(definition=242, prop_index=0)" |
| 97 |
Then the object "IfcSlabType/Slab" is an "IfcSlabType" |
| 98 |
And the object "IfcSlabType/Slab" is in the collection "IfcTypeProduct" |
| 99 |
|
| 100 |
Scenario: Append library element - append two elements sharing a material |
| 101 |
Given an empty IFC project |
| 102 |
And I press "bim.select_library_file(filepath='{cwd}/test/files/basic.ifc')" |
| 103 |
And I press "bim.change_library_element(element_name='IfcTypeProduct')" |
| 104 |
And I press "bim.change_library_element(element_name='IfcSlabType')" |
| 105 |
And I press "bim.append_library_element(definition=242, prop_index=0)" |
| 106 |
When I press "bim.rewind_library" |
| 107 |
And I press "bim.change_library_element(element_name='IfcWallType')" |
| 108 |
And I press "bim.append_library_element(definition=291, prop_index=0)" |
| 109 |
Then the object "IfcSlabType/Slab" is an "IfcSlabType" |
| 110 |
And the object "IfcSlabType/Slab" is in the collection "IfcTypeProduct" |
| 111 |
And the object "IfcWallType/Wall" is an "IfcWallType" |
| 112 |
And the object "IfcWallType/Wall" is in the collection "IfcTypeProduct" |
| 113 |
And the object "IfcSlabType/Slab" has the material "SurfaceStyle" |
| 114 |
And the object "IfcWallType/Wall" has the material "SurfaceStyle" |
| 115 |
|
| 116 |
Scenario: Load project |
| 117 |
Given an empty Blender session |
| 118 |
When I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc')" |
| 119 |
Then an IFC file exists |
| 120 |
And the object "IfcProject/My Project" is an "IfcProject" |
| 121 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 122 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 123 |
And the object "IfcBuildingStorey/Ground Floor" is an "IfcBuildingStorey" |
| 124 |
And the object "IfcBuildingStorey/Level 1" is an "IfcBuildingStorey" |
| 125 |
And the object "IfcSlab/Slab" is an "IfcSlab" |
| 126 |
And the object "IfcWall/Wall" is an "IfcWall" |
| 127 |
And the object "IfcElementAssembly/Empty" is an "IfcElementAssembly" |
| 128 |
And the object "IfcBeam/Beam" is an "IfcBeam" |
| 129 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 130 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 131 |
And the object "IfcBuildingStorey/Ground Floor" is in the collection "IfcBuildingStorey/Ground Floor" |
| 132 |
And the object "IfcBuildingStorey/Level 1" is in the collection "IfcBuildingStorey/Level 1" |
| 133 |
And the object "IfcElementAssembly/Empty" is in the collection "IfcBuildingStorey/Level 1" |
| 134 |
And the object "IfcBeam/Beam" is in the collection "IfcBuildingStorey/Level 1" |
| 135 |
And the object "IfcSlab/Slab" is in the collection "IfcBuildingStorey/Ground Floor" |
| 136 |
And the object "IfcWall/Wall" is in the collection "IfcBuildingStorey/Level 1" |
| 137 |
And "scene.BIMProjectProperties.is_loading" is "False" |
| 138 |
|
| 139 |
Scenario: Load project - IfcZip |
| 140 |
Given an empty Blender session |
| 141 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifczip')" |
| 142 |
Then the object "IfcProject/My Project" is an "IfcProject" |
| 143 |
|
| 144 |
Scenario: Load project - advanced mode |
| 145 |
Given an empty Blender session |
| 146 |
When I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc', is_advanced=True)" |
| 147 |
Then an IFC file exists |
| 148 |
And "scene.BIMProjectProperties.is_loading" is "True" |
| 149 |
And the object "IfcProject/My Project" does not exist |
| 150 |
|
| 151 |
Scenario: Load project elements - load all project elements |
| 152 |
Given an empty Blender session |
| 153 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc', is_advanced=True)" |
| 154 |
When I set "scene.BIMProjectProperties.filter_mode" to "NONE" |
| 155 |
And I press "bim.load_project_elements" |
| 156 |
Then the object "IfcProject/My Project" is an "IfcProject" |
| 157 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 158 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 159 |
And the object "IfcBuildingStorey/Ground Floor" is an "IfcBuildingStorey" |
| 160 |
And the object "IfcBuildingStorey/Level 1" is an "IfcBuildingStorey" |
| 161 |
And the object "IfcSlab/Slab" is an "IfcSlab" |
| 162 |
And the object "IfcWall/Wall" is an "IfcWall" |
| 163 |
And the object "IfcElementAssembly/Empty" is an "IfcElementAssembly" |
| 164 |
And the object "IfcBeam/Beam" is an "IfcBeam" |
| 165 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 166 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 167 |
And the object "IfcBuildingStorey/Ground Floor" is in the collection "IfcBuildingStorey/Ground Floor" |
| 168 |
And the object "IfcBuildingStorey/Level 1" is in the collection "IfcBuildingStorey/Level 1" |
| 169 |
And the object "IfcElementAssembly/Empty" is in the collection "IfcBuildingStorey/Level 1" |
| 170 |
And the object "IfcBeam/Beam" is in the collection "IfcBuildingStorey/Level 1" |
| 171 |
And the object "IfcSlab/Slab" is in the collection "IfcBuildingStorey/Ground Floor" |
| 172 |
And the object "IfcWall/Wall" is in the collection "IfcBuildingStorey/Level 1" |
| 173 |
And the object "IfcSlab/Slab" has data which is an IFC representation |
| 174 |
And the object "IfcBeam/Beam" has data which is an IFC representation |
| 175 |
And the object "IfcWall/Wall" has data which is an IFC representation |
| 176 |
And the object "IfcSlabType/Slab" has data which is an IFC representation |
| 177 |
And the object "IfcWallType/Wall" has data which is an IFC representation |
| 178 |
And "scene.BIMProjectProperties.is_loading" is "False" |
| 179 |
|
| 180 |
Scenario: Load project elements - load objects filtered by decomposition |
| 181 |
Given an empty Blender session |
| 182 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc', is_advanced=True)" |
| 183 |
When I set "scene.BIMProjectProperties.filter_mode" to "DECOMPOSITION" |
| 184 |
And I set "scene.BIMProjectProperties.should_filter_spatial_elements" to "True" |
| 185 |
Then "scene.BIMProjectProperties.filter_categories['IfcSite/My Site'].total_elements" is "0" |
| 186 |
Then "scene.BIMProjectProperties.filter_categories['IfcBuilding/My Building'].total_elements" is "0" |
| 187 |
Then "scene.BIMProjectProperties.filter_categories['IfcBuildingStorey/Ground Floor'].total_elements" is "1" |
| 188 |
Then "scene.BIMProjectProperties.filter_categories['IfcBuildingStorey/Level 1'].total_elements" is "2" |
| 189 |
When I set "scene.BIMProjectProperties.filter_categories['IfcBuildingStorey/Level 1'].is_selected" to "True" |
| 190 |
And I press "bim.load_project_elements" |
| 191 |
Then the object "IfcProject/My Project" is an "IfcProject" |
| 192 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 193 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 194 |
And the object "IfcBuildingStorey/Level 1" is an "IfcBuildingStorey" |
| 195 |
And the object "IfcWall/Wall" is an "IfcWall" |
| 196 |
And the object "IfcElementAssembly/Empty" is an "IfcElementAssembly" |
| 197 |
And the object "IfcBeam/Beam" is an "IfcBeam" |
| 198 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 199 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 200 |
And the object "IfcBuildingStorey/Level 1" is in the collection "IfcBuildingStorey/Level 1" |
| 201 |
And the object "IfcWall/Wall" is in the collection "IfcBuildingStorey/Level 1" |
| 202 |
And the object "IfcElementAssembly/Empty" is in the collection "IfcBuildingStorey/Level 1" |
| 203 |
And the object "IfcBeam/Beam" is in the collection "IfcBuildingStorey/Level 1" |
| 204 |
And the object "IfcBuildingStorey/Ground Floor" does not exist |
| 205 |
And the object "IfcSlab/Slab" does not exist |
| 206 |
|
| 207 |
Scenario: Load project elements - load objects filtered by IFC class |
| 208 |
Given an empty Blender session |
| 209 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc', is_advanced=True)" |
| 210 |
When I set "scene.BIMProjectProperties.filter_mode" to "IFC_CLASS" |
| 211 |
And I set "scene.BIMProjectProperties.should_filter_spatial_elements" to "True" |
| 212 |
Then "scene.BIMProjectProperties.filter_categories['IfcWall'].total_elements" is "1" |
| 213 |
And "scene.BIMProjectProperties.filter_categories['IfcSlab'].total_elements" is "1" |
| 214 |
And "scene.BIMProjectProperties.filter_categories['IfcElementAssembly'].total_elements" is "1" |
| 215 |
And "scene.BIMProjectProperties.filter_categories['IfcBeam'].total_elements" is "1" |
| 216 |
When I set "scene.BIMProjectProperties.filter_categories['IfcSlab'].is_selected" to "True" |
| 217 |
And I press "bim.load_project_elements" |
| 218 |
Then the object "IfcProject/My Project" is an "IfcProject" |
| 219 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 220 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 221 |
And the object "IfcBuildingStorey/Ground Floor" is an "IfcBuildingStorey" |
| 222 |
And the object "IfcSlab/Slab" is an "IfcSlab" |
| 223 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 224 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 225 |
And the object "IfcBuildingStorey/Ground Floor" is in the collection "IfcBuildingStorey/Ground Floor" |
| 226 |
And the object "IfcSlab/Slab" is in the collection "IfcBuildingStorey/Ground Floor" |
| 227 |
And the object "IfcBuildingStorey/Level 1" does not exist |
| 228 |
And the object "IfcWall/Wall" does not exist |
| 229 |
|
| 230 |
Scenario: Load project elements - load objects filtered by whitelist |
| 231 |
Given an empty Blender session |
| 232 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc', is_advanced=True)" |
| 233 |
When I set "scene.BIMProjectProperties.filter_mode" to "WHITELIST" |
| 234 |
And I set "scene.BIMProjectProperties.filter_query" to "IfcSlab" |
| 235 |
And I set "scene.BIMProjectProperties.should_filter_spatial_elements" to "True" |
| 236 |
And I press "bim.load_project_elements" |
| 237 |
Then the object "IfcProject/My Project" is an "IfcProject" |
| 238 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 239 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 240 |
And the object "IfcBuildingStorey/Ground Floor" is an "IfcBuildingStorey" |
| 241 |
And the object "IfcSlab/Slab" is an "IfcSlab" |
| 242 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 243 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 244 |
And the object "IfcBuildingStorey/Ground Floor" is in the collection "IfcBuildingStorey/Ground Floor" |
| 245 |
And the object "IfcSlab/Slab" is in the collection "IfcBuildingStorey/Ground Floor" |
| 246 |
And the object "IfcBuildingStorey/Level 1" does not exist |
| 247 |
And the object "IfcWall/Wall" does not exist |
| 248 |
|
| 249 |
Scenario: Load project elements - load objects filtered by blacklist |
| 250 |
Given an empty Blender session |
| 251 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc', is_advanced=True)" |
| 252 |
When I set "scene.BIMProjectProperties.filter_mode" to "BLACKLIST" |
| 253 |
And I set "scene.BIMProjectProperties.filter_query" to "IfcSlab" |
| 254 |
And I set "scene.BIMProjectProperties.should_filter_spatial_elements" to "True" |
| 255 |
And I press "bim.load_project_elements" |
| 256 |
Then the object "IfcProject/My Project" is an "IfcProject" |
| 257 |
And the object "IfcSite/My Site" is an "IfcSite" |
| 258 |
And the object "IfcBuilding/My Building" is an "IfcBuilding" |
| 259 |
And the object "IfcBuildingStorey/Level 1" is an "IfcBuildingStorey" |
| 260 |
And the object "IfcWall/Wall" is an "IfcWall" |
| 261 |
And the object "IfcElementAssembly/Empty" is an "IfcElementAssembly" |
| 262 |
And the object "IfcBeam/Beam" is an "IfcBeam" |
| 263 |
And the object "IfcSite/My Site" is in the collection "IfcSite/My Site" |
| 264 |
And the object "IfcBuilding/My Building" is in the collection "IfcBuilding/My Building" |
| 265 |
And the object "IfcBuildingStorey/Level 1" is in the collection "IfcBuildingStorey/Level 1" |
| 266 |
And the object "IfcWall/Wall" is in the collection "IfcBuildingStorey/Level 1" |
| 267 |
And the object "IfcElementAssembly/Empty" is in the collection "IfcBuildingStorey/Level 1" |
| 268 |
And the object "IfcBeam/Beam" is in the collection "IfcBuildingStorey/Level 1" |
| 269 |
And the object "IfcBuildingStorey/Ground Floor" does not exist |
| 270 |
And the object "IfcSlab/Slab" does not exist |
| 271 |
|
| 272 |
Scenario: Load project elements - load no objects due to filter |
| 273 |
Given an empty Blender session |
| 274 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc', is_advanced=True)" |
| 275 |
When I set "scene.BIMProjectProperties.filter_mode" to "IFC_CLASS" |
| 276 |
And I set "scene.BIMProjectProperties.should_filter_spatial_elements" to "True" |
| 277 |
And I press "bim.load_project_elements" |
| 278 |
Then the object "IfcProject/My Project" is an "IfcProject" |
| 279 |
And the object "IfcSite/My Site" does not exist |
| 280 |
And the object "IfcBuilding/My Building" does not exist |
| 281 |
And the object "IfcBuildingStorey/Ground Floor" does not exist |
| 282 |
And the object "IfcBuildingStorey/Level 1" does not exist |
| 283 |
And the object "IfcSlab/Slab" does not exist |
| 284 |
And the object "IfcWall/Wall" does not exist |
| 285 |
|
| 286 |
Scenario: Load project elements - manual offset of object placements |
| 287 |
Given an empty Blender session |
| 288 |
And I press "bim.load_project(filepath='{cwd}/test/files/manual-geolocation.ifc', is_advanced=True)" |
| 289 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "MANUAL" |
| 290 |
And I set "scene.BIMProjectProperties.false_origin" to "268388500, 5774506000, 21900" |
| 291 |
And I press "bim.load_project_elements" |
| 292 |
Then the object "IfcPlate/1780 x 270 PRECAST WALL" is at "0,0,0" |
| 293 |
|
| 294 |
Scenario: Load project elements - manual offset of cartesian points |
| 295 |
Given an empty Blender session |
| 296 |
And I press "bim.load_project(filepath='{cwd}/test/files/manual-geolocation-coords.ifc', is_advanced=True)" |
| 297 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "MANUAL" |
| 298 |
And I set "scene.BIMProjectProperties.false_origin" to "1990711,5971553,22700" |
| 299 |
And I press "bim.load_project_elements" |
| 300 |
Then the object "IfcBuildingElementProxy/NAME" has a vertex at "0,0,0" |
| 301 |
And the object "IfcBuildingElementProxy/NAME" has a vertex at "-1,0,0" |
| 302 |
And the object "IfcBuildingElementProxy/NAME" has a vertex at "0,.5,0" |
| 303 |
And the object "IfcBuildingElementProxy/NAME" has a vertex at "-1,.5,0" |
| 304 |
And the object "IfcBuildingElementProxy/NAME" has a vertex at "-1,.5,2.2" |
| 305 |
|
| 306 |
Scenario: Load project elements - auto offset of object placements |
| 307 |
Given an empty Blender session |
| 308 |
When I press "bim.load_project(filepath='{cwd}/test/files/auto-geolocation.ifc')" |
| 309 |
Then the object "IfcPlate/1780 x 270 PRECAST WALL" is at "0,0,0" |
| 310 |
|
| 311 |
Scenario: Load project elements - auto offset of cartesian points |
| 312 |
Given an empty Blender session |
| 313 |
When I press "bim.load_project(filepath='{cwd}/test/files/manual-geolocation-coords.ifc')" |
| 314 |
Then the object "IfcBuildingElementProxy/NAME" is at "0,0,0" |
| 315 |
|
| 316 |
Scenario: Load project elements - all georeferencing coordinate situations - disabled false origin mode |
| 317 |
Given an empty Blender session |
| 318 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation.ifc', is_advanced=True)" |
| 319 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "DISABLED" |
| 320 |
When I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 321 |
And I press "bim.load_project_elements" |
| 322 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "False" |
| 323 |
And the object "IfcSite/My Site" is at "0,0,0" |
| 324 |
And the object "IfcBuilding/My Building" is at "0,0,0" |
| 325 |
And the object "IfcBuildingStorey/My Storey" is at "0,0,0" |
| 326 |
And the object "IfcActuator/A" is at "7,3,0" |
| 327 |
And the object "IfcActuator/B" is at "6,1,0" |
| 328 |
And the object "IfcActuator/C" is at "0,0,0" |
| 329 |
And the object "IfcActuator/D" is at "13,4,-1" |
| 330 |
And the object "IfcActuator/E" is at "6,3,0" |
| 331 |
And the object "IfcActuator/F" is at "3,3,0" |
| 332 |
And the object "IfcActuator/G" is at "15,6,-1" |
| 333 |
And the object "IfcActuator/H" is at "9,2,0" |
| 334 |
And the object "IfcActuator/I" is at "3,3,0" |
| 335 |
And the object "IfcActuator/J" is at "11,3,-1" |
| 336 |
And the object "IfcActuator/K" is at "10,0,0" |
| 337 |
|
| 338 |
Scenario: Load project elements - all georeferencing coordinate situations - automatic false origin mode |
| 339 |
Given an empty Blender session |
| 340 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation.ifc', is_advanced=True)" |
| 341 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "AUTOMATIC" |
| 342 |
When I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 343 |
And I press "bim.load_project_elements" |
| 344 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "True" |
| 345 |
And "scene.BIMGeoreferenceProperties.model_origin" is "13000.0,4000.0,-1000.0" |
| 346 |
And "scene.BIMGeoreferenceProperties.blender_offset_x" is "13000.0" |
| 347 |
And "scene.BIMGeoreferenceProperties.blender_offset_y" is "4000.0" |
| 348 |
And "scene.BIMGeoreferenceProperties.blender_offset_z" is "-1000.0" |
| 349 |
And the object "IfcSite/My Site" is at "0,0,0" |
| 350 |
And the object "IfcBuilding/My Building" is at "0,0,0" |
| 351 |
And the object "IfcBuildingStorey/My Storey" is at "0,0,0" |
| 352 |
And the object "IfcActuator/A" is at "-6,-1,1" |
| 353 |
And the object "IfcActuator/B" is at "-7,-3,1" |
| 354 |
And the object "IfcActuator/C" is at "0,0,0" |
| 355 |
And the object "IfcActuator/D" is at "0,0,0" |
| 356 |
And the object "IfcActuator/E" is at "-7,-1,1" |
| 357 |
And the object "IfcActuator/F" is at "-10,-1,1" |
| 358 |
And the object "IfcActuator/G" is at "2,2,0" |
| 359 |
And the object "IfcActuator/H" is at "-4,-2,1" |
| 360 |
And the object "IfcActuator/I" is at "-10,-1,1" |
| 361 |
And the object "IfcActuator/J" is at "-2,-1,0" |
| 362 |
And the object "IfcActuator/K" is at "-3,-4,1" |
| 363 |
|
| 364 |
Scenario: Load project elements - all georeferencing coordinate situations - manual false origin mode |
| 365 |
Given an empty Blender session |
| 366 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation.ifc', is_advanced=True)" |
| 367 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "MANUAL" |
| 368 |
When I set "scene.BIMProjectProperties.false_origin" to "10000,0,0" |
| 369 |
When I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 370 |
And I press "bim.load_project_elements" |
| 371 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "True" |
| 372 |
And "scene.BIMGeoreferenceProperties.model_origin" is "10000.0,0.0,0.0" |
| 373 |
And "scene.BIMGeoreferenceProperties.blender_offset_x" is "10000.0" |
| 374 |
And "scene.BIMGeoreferenceProperties.blender_offset_y" is "0.0" |
| 375 |
And "scene.BIMGeoreferenceProperties.blender_offset_z" is "0.0" |
| 376 |
And the object "IfcSite/My Site" is at "0,0,0" |
| 377 |
And the object "IfcBuilding/My Building" is at "0,0,0" |
| 378 |
And the object "IfcBuildingStorey/My Storey" is at "0,0,0" |
| 379 |
And the object "IfcActuator/A" is at "-3,3,0" |
| 380 |
And the object "IfcActuator/B" is at "-4,1,0" |
| 381 |
And the object "IfcActuator/C" is at "0,0,0" |
| 382 |
And the object "IfcActuator/D" is at "3,4,-1" |
| 383 |
And the object "IfcActuator/E" is at "-4,3,0" |
| 384 |
And the object "IfcActuator/F" is at "-7,3,0" |
| 385 |
And the object "IfcActuator/G" is at "5,6,-1" |
| 386 |
And the object "IfcActuator/H" is at "-1,2,0" |
| 387 |
And the object "IfcActuator/I" is at "-7,3,0" |
| 388 |
And the object "IfcActuator/J" is at "1,3,-1" |
| 389 |
And the object "IfcActuator/K" is at "0,0,0" |
| 390 |
And the object "IfcActuator/D" has a cartesian point offset of "31,4,-1" |
| 391 |
And the object "IfcActuator/G" has a cartesian point offset of "-25,6,-1" |
| 392 |
And the object "IfcActuator/J" has a cartesian point offset of "11,3,-1" |
| 393 |
And the object "IfcActuator/D" has a vertex at "3,2,-1" |
| 394 |
And the object "IfcActuator/D" has a vertex at "5,2,-1" |
| 395 |
And the object "IfcActuator/G" has a vertex at "5,4,-1" |
| 396 |
And the object "IfcActuator/G" has a vertex at "7,4,-1" |
| 397 |
And the object "IfcActuator/J" has a vertex at "1,1,-1" |
| 398 |
And the object "IfcActuator/J" has a vertex at "3,1,-1" |
| 399 |
|
| 400 |
Scenario: Load project elements - all georeferencing coordinate situations with an offset site - disabled false origin mode |
| 401 |
Given an empty Blender session |
| 402 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-offsetsite.ifc', is_advanced=True)" |
| 403 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "DISABLED" |
| 404 |
When I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 405 |
And I press "bim.load_project_elements" |
| 406 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "False" |
| 407 |
And the object "IfcSite/My Site" is at "0,10,0" |
| 408 |
And the object "IfcBuilding/My Building" is at "0,10,0" |
| 409 |
And the object "IfcBuildingStorey/My Storey" is at "0,10,0" |
| 410 |
And the object "IfcActuator/A" is at "5.985,14.71,0" |
| 411 |
And the object "IfcActuator/B" is at "5.5367,12.519,0" |
| 412 |
And the object "IfcActuator/C" is at "0,10,0" |
| 413 |
And the object "IfcActuator/D" is at "11.522,17.228,-1" |
| 414 |
And the object "IfcActuator/E" is at "5.0191,14.451,0" |
| 415 |
And the object "IfcActuator/F" is at "2.1213,13.674,0" |
| 416 |
And the object "IfcActuator/G" is at "12.936,19.678,-1" |
| 417 |
And the object "IfcActuator/H" is at "8.1757,14.261,0" |
| 418 |
And the object "IfcActuator/I" is at "2.1213,13.674,0" |
| 419 |
And the object "IfcActuator/J" is at "9.8487,15.745,-1" |
| 420 |
And the object "IfcActuator/K" is at "9.6593,12.588,0" |
| 421 |
|
| 422 |
Scenario: Load project elements - all georeferencing coordinate situations with an offset site - automatic false origin mode |
| 423 |
Given an empty Blender session |
| 424 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-offsetsite.ifc', is_advanced=True)" |
| 425 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "AUTOMATIC" |
| 426 |
When I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 427 |
And I press "bim.load_project_elements" |
| 428 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "True" |
| 429 |
And "scene.BIMGeoreferenceProperties.model_origin" is "0.0,10000.0,0.0" |
| 430 |
And "scene.BIMGeoreferenceProperties.blender_offset_x" is "0.0" |
| 431 |
And "scene.BIMGeoreferenceProperties.blender_offset_y" is "10000.0" |
| 432 |
And "scene.BIMGeoreferenceProperties.blender_offset_z" is "0.0" |
| 433 |
And the object "IfcSite/My Site" is at "0,0,0" |
| 434 |
And the object "IfcBuilding/My Building" is at "0,0,0" |
| 435 |
And the object "IfcBuildingStorey/My Storey" is at "0,0,0" |
| 436 |
And the object "IfcActuator/A" is at "7,3,0" |
| 437 |
And the object "IfcActuator/B" is at "6,1,0" |
| 438 |
And the object "IfcActuator/C" is at "0,0,0" |
| 439 |
And the object "IfcActuator/D" is at "13,4,-1" |
| 440 |
And the object "IfcActuator/E" is at "6,3,0" |
| 441 |
And the object "IfcActuator/F" is at "3,3,0" |
| 442 |
And the object "IfcActuator/G" is at "15,6,-1" |
| 443 |
And the object "IfcActuator/H" is at "9,2,0" |
| 444 |
And the object "IfcActuator/I" is at "3,3,0" |
| 445 |
And the object "IfcActuator/J" is at "11,3,-1" |
| 446 |
And the object "IfcActuator/K" is at "10,0,0" |
| 447 |
|
| 448 |
Scenario: Load project elements - all georeferencing coordinate situations with an offset site - manual false origin mode |
| 449 |
Given an empty Blender session |
| 450 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-offsetsite.ifc', is_advanced=True)" |
| 451 |
And I set "scene.BIMProjectProperties.false_origin_mode" to "MANUAL" |
| 452 |
And I set "scene.BIMProjectProperties.false_origin" to "0,10000,0" |
| 453 |
And I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 454 |
When I press "bim.load_project_elements" |
| 455 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "True" |
| 456 |
And "scene.BIMGeoreferenceProperties.model_origin" is "0.0,10000.0,0.0" |
| 457 |
And "scene.BIMGeoreferenceProperties.blender_offset_x" is "0.0" |
| 458 |
And "scene.BIMGeoreferenceProperties.blender_offset_y" is "10000.0" |
| 459 |
And "scene.BIMGeoreferenceProperties.blender_offset_z" is "0.0" |
| 460 |
And the object "IfcSite/My Site" is at "0,0,0" |
| 461 |
And the object "IfcBuilding/My Building" is at "0,0,0" |
| 462 |
And the object "IfcBuildingStorey/My Storey" is at "0,0,0" |
| 463 |
And the object "IfcActuator/A" is at "5.985,4.71,0" |
| 464 |
And the object "IfcActuator/B" is at "5.5367,2.519,0" |
| 465 |
And the object "IfcActuator/C" is at "0,0,0" |
| 466 |
And the object "IfcActuator/D" is at "11.522,7.228,-1" |
| 467 |
And the object "IfcActuator/E" is at "5.0191,4.451,0" |
| 468 |
And the object "IfcActuator/F" is at "2.1213,3.674,0" |
| 469 |
And the object "IfcActuator/G" is at "12.936,9.678,-1" |
| 470 |
And the object "IfcActuator/H" is at "8.1757,4.261,0" |
| 471 |
And the object "IfcActuator/I" is at "2.1213,3.674,0" |
| 472 |
And the object "IfcActuator/J" is at "9.8487,5.745,-1" |
| 473 |
And the object "IfcActuator/K" is at "9.6593,2.588,0" |
| 474 |
And the object "IfcActuator/D" has a cartesian point offset of "31,4,-1" |
| 475 |
And the object "IfcActuator/G" has a cartesian point offset of "-25,6,-1" |
| 476 |
And the object "IfcActuator/J" has a cartesian point offset of "11,3,-1" |
| 477 |
And the object "IfcActuator/D" has a vertex at "12.039,5.296,-1" |
| 478 |
And the object "IfcActuator/D" has a vertex at "13.971,5.814,-1" |
| 479 |
And the object "IfcActuator/G" has a vertex at "13.454,7.746,-1" |
| 480 |
And the object "IfcActuator/G" has a vertex at "15.385,8.264,-1" |
| 481 |
And the object "IfcActuator/J" has a vertex at "10.366,3.813,-1" |
| 482 |
And the object "IfcActuator/J" has a vertex at "12.298,4.331,-1" |
| 483 |
|
| 484 |
Scenario: Load project elements - all georeferencing coordinate situations with an offset site - manual false origin mode - with custom project north |
| 485 |
Given an empty Blender session |
| 486 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-offsetsite.ifc', is_advanced=True)" |
| 487 |
And I set "scene.BIMProjectProperties.false_origin_mode" to "MANUAL" |
| 488 |
And I set "scene.BIMProjectProperties.false_origin" to "0,10000,0" |
| 489 |
And I set "scene.BIMProjectProperties.project_north" to "-15" |
| 490 |
And I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 491 |
When I press "bim.load_project_elements" |
| 492 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "True" |
| 493 |
And "scene.BIMGeoreferenceProperties.model_origin" is "0.0,10000.0,0.0" |
| 494 |
And "scene.BIMGeoreferenceProperties.blender_offset_x" is "0.0" |
| 495 |
And "scene.BIMGeoreferenceProperties.blender_offset_y" is "10000.0" |
| 496 |
And "scene.BIMGeoreferenceProperties.blender_offset_z" is "0.0" |
| 497 |
And the object "IfcSite/My Site" is at "0,0,0" |
| 498 |
And the object "IfcBuilding/My Building" is at "0,0,0" |
| 499 |
And the object "IfcBuildingStorey/My Storey" is at "0,0,0" |
| 500 |
And the object "IfcActuator/A" is at "7,3,0" |
| 501 |
And the object "IfcActuator/B" is at "6,1,0" |
| 502 |
And the object "IfcActuator/C" is at "0,0,0" |
| 503 |
And the object "IfcActuator/D" is at "13,4,-1" |
| 504 |
And the object "IfcActuator/E" is at "6,3,0" |
| 505 |
And the object "IfcActuator/F" is at "3,3,0" |
| 506 |
And the object "IfcActuator/G" is at "15,6,-1" |
| 507 |
And the object "IfcActuator/H" is at "9,2,0" |
| 508 |
And the object "IfcActuator/I" is at "3,3,0" |
| 509 |
And the object "IfcActuator/J" is at "11,3,-1" |
| 510 |
And the object "IfcActuator/K" is at "10,0,0" |
| 511 |
|
| 512 |
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) |
| 513 |
Given an empty Blender session |
| 514 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion.ifc', is_advanced=True)" |
| 515 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "DISABLED" |
| 516 |
When I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 517 |
And I press "bim.load_project_elements" |
| 518 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "False" |
| 519 |
And the object "IfcSite/My Site" is at "0,0,0" |
| 520 |
And the object "IfcBuilding/My Building" is at "0,0,0" |
| 521 |
And the object "IfcBuildingStorey/My Storey" is at "0,0,0" |
| 522 |
And the object "IfcActuator/A" is at "7,3,0" |
| 523 |
And the object "IfcActuator/B" is at "6,1,0" |
| 524 |
And the object "IfcActuator/C" is at "0,0,0" |
| 525 |
And the object "IfcActuator/D" is at "13,4,-1" |
| 526 |
And the object "IfcActuator/E" is at "6,3,0" |
| 527 |
And the object "IfcActuator/F" is at "3,3,0" |
| 528 |
And the object "IfcActuator/G" is at "15,6,-1" |
| 529 |
And the object "IfcActuator/H" is at "9,2,0" |
| 530 |
And the object "IfcActuator/I" is at "3,3,0" |
| 531 |
And the object "IfcActuator/J" is at "11,3,-1" |
| 532 |
And the object "IfcActuator/K" is at "10,0,0" |
| 533 |
|
| 534 |
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) |
| 535 |
Given an empty Blender session |
| 536 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion.ifc', is_advanced=True)" |
| 537 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "AUTOMATIC" |
| 538 |
When I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 539 |
And I press "bim.load_project_elements" |
| 540 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "True" |
| 541 |
And "scene.BIMGeoreferenceProperties.model_origin" is "28000.0,4000.0,-1000.0" |
| 542 |
And "scene.BIMGeoreferenceProperties.blender_offset_x" is "13000.0" |
| 543 |
And "scene.BIMGeoreferenceProperties.blender_offset_y" is "4000.0" |
| 544 |
And "scene.BIMGeoreferenceProperties.blender_offset_z" is "-1000.0" |
| 545 |
And the object "IfcSite/My Site" is at "0,0,0" |
| 546 |
And the object "IfcBuilding/My Building" is at "0,0,0" |
| 547 |
And the object "IfcBuildingStorey/My Storey" is at "0,0,0" |
| 548 |
And the object "IfcActuator/A" is at "-6,-1,1" |
| 549 |
And the object "IfcActuator/B" is at "-7,-3,1" |
| 550 |
And the object "IfcActuator/C" is at "0,0,0" |
| 551 |
And the object "IfcActuator/D" is at "0,0,0" |
| 552 |
And the object "IfcActuator/E" is at "-7,-1,1" |
| 553 |
And the object "IfcActuator/F" is at "-10,-1,1" |
| 554 |
And the object "IfcActuator/G" is at "2,2,0" |
| 555 |
And the object "IfcActuator/H" is at "-4,-2,1" |
| 556 |
And the object "IfcActuator/I" is at "-10,-1,1" |
| 557 |
And the object "IfcActuator/J" is at "-2,-1,0" |
| 558 |
And the object "IfcActuator/K" is at "-3,-4,1" |
| 559 |
|
| 560 |
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) |
| 561 |
Given an empty Blender session |
| 562 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion.ifc', is_advanced=True)" |
| 563 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "MANUAL" |
| 564 |
When I set "scene.BIMProjectProperties.false_origin" to "25000,0,0" |
| 565 |
When I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 566 |
And I press "bim.load_project_elements" |
| 567 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "True" |
| 568 |
And "scene.BIMGeoreferenceProperties.model_origin" is "25000.0,0.0,0.0" |
| 569 |
And "scene.BIMGeoreferenceProperties.blender_offset_x" is "10000.0" |
| 570 |
And "scene.BIMGeoreferenceProperties.blender_offset_y" is "0.0" |
| 571 |
And "scene.BIMGeoreferenceProperties.blender_offset_z" is "0.0" |
| 572 |
And the object "IfcSite/My Site" is at "0,0,0" |
| 573 |
And the object "IfcBuilding/My Building" is at "0,0,0" |
| 574 |
And the object "IfcBuildingStorey/My Storey" is at "0,0,0" |
| 575 |
And the object "IfcActuator/A" is at "-3,3,0" |
| 576 |
And the object "IfcActuator/B" is at "-4,1,0" |
| 577 |
And the object "IfcActuator/C" is at "0,0,0" |
| 578 |
And the object "IfcActuator/D" is at "3,4,-1" |
| 579 |
And the object "IfcActuator/E" is at "-4,3,0" |
| 580 |
And the object "IfcActuator/F" is at "-7,3,0" |
| 581 |
And the object "IfcActuator/G" is at "5,6,-1" |
| 582 |
And the object "IfcActuator/H" is at "-1,2,0" |
| 583 |
And the object "IfcActuator/I" is at "-7,3,0" |
| 584 |
And the object "IfcActuator/J" is at "1,3,-1" |
| 585 |
And the object "IfcActuator/K" is at "0,0,0" |
| 586 |
And the object "IfcActuator/D" has a cartesian point offset of "31,4,-1" |
| 587 |
And the object "IfcActuator/G" has a cartesian point offset of "-25,6,-1" |
| 588 |
And the object "IfcActuator/J" has a cartesian point offset of "11,3,-1" |
| 589 |
And the object "IfcActuator/D" has a vertex at "3,2,-1" |
| 590 |
And the object "IfcActuator/D" has a vertex at "5,2,-1" |
| 591 |
And the object "IfcActuator/G" has a vertex at "5,4,-1" |
| 592 |
And the object "IfcActuator/G" has a vertex at "7,4,-1" |
| 593 |
And the object "IfcActuator/J" has a vertex at "1,1,-1" |
| 594 |
And the object "IfcActuator/J" has a vertex at "3,1,-1" |
| 595 |
|
| 596 |
Scenario: Load project elements - all georeferencing coordinate situations with map conversion and an offset site - disabled false origin mode |
| 597 |
Given an empty Blender session |
| 598 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion-offsetsite.ifc', is_advanced=True)" |
| 599 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "DISABLED" |
| 600 |
When I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 601 |
And I press "bim.load_project_elements" |
| 602 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "False" |
| 603 |
And the object "IfcSite/My Site" is at "0,10,0" |
| 604 |
And the object "IfcBuilding/My Building" is at "0,10,0" |
| 605 |
And the object "IfcBuildingStorey/My Storey" is at "0,10,0" |
| 606 |
And the object "IfcActuator/A" is at "5.985,14.71,0" |
| 607 |
And the object "IfcActuator/B" is at "5.5367,12.519,0" |
| 608 |
And the object "IfcActuator/C" is at "0,10,0" |
| 609 |
And the object "IfcActuator/D" is at "11.522,17.228,-1" |
| 610 |
And the object "IfcActuator/E" is at "5.0191,14.451,0" |
| 611 |
And the object "IfcActuator/F" is at "2.1213,13.674,0" |
| 612 |
And the object "IfcActuator/G" is at "12.936,19.678,-1" |
| 613 |
And the object "IfcActuator/H" is at "8.1757,14.261,0" |
| 614 |
And the object "IfcActuator/I" is at "2.1213,13.674,0" |
| 615 |
And the object "IfcActuator/J" is at "9.8487,15.745,-1" |
| 616 |
And the object "IfcActuator/K" is at "9.6593,12.588,0" |
| 617 |
|
| 618 |
Scenario: Load project elements - all georeferencing coordinate situations with map conversion and an offset site - automatic false origin mode |
| 619 |
Given an empty Blender session |
| 620 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion-offsetsite.ifc', is_advanced=True)" |
| 621 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "AUTOMATIC" |
| 622 |
When I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 623 |
And I press "bim.load_project_elements" |
| 624 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "True" |
| 625 |
And "scene.BIMGeoreferenceProperties.model_origin" is "15000.0,10000.0,0.0" |
| 626 |
And "scene.BIMGeoreferenceProperties.blender_offset_x" is "0.0" |
| 627 |
And "scene.BIMGeoreferenceProperties.blender_offset_y" is "10000.0" |
| 628 |
And "scene.BIMGeoreferenceProperties.blender_offset_z" is "0.0" |
| 629 |
And the object "IfcSite/My Site" is at "0,0,0" |
| 630 |
And the object "IfcBuilding/My Building" is at "0,0,0" |
| 631 |
And the object "IfcBuildingStorey/My Storey" is at "0,0,0" |
| 632 |
And the object "IfcActuator/A" is at "7,3,0" |
| 633 |
And the object "IfcActuator/B" is at "6,1,0" |
| 634 |
And the object "IfcActuator/C" is at "0,0,0" |
| 635 |
And the object "IfcActuator/D" is at "13,4,-1" |
| 636 |
And the object "IfcActuator/E" is at "6,3,0" |
| 637 |
And the object "IfcActuator/F" is at "3,3,0" |
| 638 |
And the object "IfcActuator/G" is at "15,6,-1" |
| 639 |
And the object "IfcActuator/H" is at "9,2,0" |
| 640 |
And the object "IfcActuator/I" is at "3,3,0" |
| 641 |
And the object "IfcActuator/J" is at "11,3,-1" |
| 642 |
And the object "IfcActuator/K" is at "10,0,0" |
| 643 |
|
| 644 |
Scenario: Load project elements - all georeferencing coordinate situations with map conversion and an offset site - manual false origin mode |
| 645 |
Given an empty Blender session |
| 646 |
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion-offsetsite.ifc', is_advanced=True)" |
| 647 |
When I set "scene.BIMProjectProperties.false_origin_mode" to "MANUAL" |
| 648 |
When I set "scene.BIMProjectProperties.false_origin" to "15000,10000,0" |
| 649 |
When I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 650 |
And I press "bim.load_project_elements" |
| 651 |
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "True" |
| 652 |
And "scene.BIMGeoreferenceProperties.model_origin" is "15000.0,10000.0,0.0" |
| 653 |
And "scene.BIMGeoreferenceProperties.blender_offset_x" is "0.0" |
| 654 |
And "scene.BIMGeoreferenceProperties.blender_offset_y" is "10000.0" |
| 655 |
And "scene.BIMGeoreferenceProperties.blender_offset_z" is "0.0" |
| 656 |
And the object "IfcSite/My Site" is at "0,0,0" |
| 657 |
And the object "IfcBuilding/My Building" is at "0,0,0" |
| 658 |
And the object "IfcBuildingStorey/My Storey" is at "0,0,0" |
| 659 |
And the object "IfcActuator/A" is at "5.985,4.71,0" |
| 660 |
And the object "IfcActuator/B" is at "5.5367,2.519,0" |
| 661 |
And the object "IfcActuator/C" is at "0,0,0" |
| 662 |
And the object "IfcActuator/D" is at "11.522,7.228,-1" |
| 663 |
And the object "IfcActuator/E" is at "5.0191,4.451,0" |
| 664 |
And the object "IfcActuator/F" is at "2.1213,3.674,0" |
| 665 |
And the object "IfcActuator/G" is at "12.936,9.678,-1" |
| 666 |
And the object "IfcActuator/H" is at "8.1757,4.261,0" |
| 667 |
And the object "IfcActuator/I" is at "2.1213,3.674,0" |
| 668 |
And the object "IfcActuator/J" is at "9.8487,5.745,-1" |
| 669 |
And the object "IfcActuator/K" is at "9.6593,2.588,0" |
| 670 |
And the object "IfcActuator/D" has a cartesian point offset of "31,4,-1" |
| 671 |
And the object "IfcActuator/G" has a cartesian point offset of "-25,6,-1" |
| 672 |
And the object "IfcActuator/J" has a cartesian point offset of "11,3,-1" |
| 673 |
And the object "IfcActuator/D" has a vertex at "12.039,5.296,-1" |
| 674 |
And the object "IfcActuator/D" has a vertex at "13.971,5.814,-1" |
| 675 |
And the object "IfcActuator/G" has a vertex at "13.454,7.746,-1" |
| 676 |
And the object "IfcActuator/G" has a vertex at "15.385,8.264,-1" |
| 677 |
And the object "IfcActuator/J" has a vertex at "10.366,3.813,-1" |
| 678 |
And the object "IfcActuator/J" has a vertex at "12.298,4.331,-1" |
| 679 |
|
| 680 |
Scenario: Link IFC |
| 681 |
Given an empty IFC project |
| 682 |
When I press "bim.link_ifc(filepath='{cwd}/test/files/basic.ifc')" |
| 683 |
Then "scene.BIMProjectProperties.links['{cwd}/test/files/basic.ifc'].is_loaded" is "True" |
| 684 |
And the collection "IfcProject/basic.ifc" exists |
| 685 |
And the object "Chunk" exists |
| 686 |
And the object "Chunk" is placed in the collection "IfcProject/basic.ifc" |
| 687 |
|
| 688 |
Scenario: Link IFC - disabled false origin mode |
| 689 |
Given an empty IFC project |
| 690 |
# Not currently possible via UI |
| 691 |
And I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 692 |
And I set "scene.BIMProjectProperties.false_origin_mode" to "DISABLED" |
| 693 |
When I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation.ifc', use_cache=False)" |
| 694 |
Then the object "Chunk" exists |
| 695 |
And the object "Chunk" has a vertex at "2,2,-1" |
| 696 |
And the object "Chunk" has a vertex at "9,-1,-1" |
| 697 |
And the object "Chunk" has a vertex at "17,4,-1" |
| 698 |
|
| 699 |
Scenario: Link IFC - from an empty IFC project - automatic false origin mode (0,0,0 will be the false origin) |
| 700 |
Given an empty IFC project |
| 701 |
# Not currently possible via UI |
| 702 |
And I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 703 |
And I set "scene.BIMProjectProperties.false_origin_mode" to "AUTOMATIC" |
| 704 |
When I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation.ifc', use_cache=False)" |
| 705 |
Then the object "Chunk" exists |
| 706 |
And the object "Chunk" has a vertex at "2,2,-1" |
| 707 |
And the object "Chunk" has a vertex at "9,-1,-1" |
| 708 |
And the object "Chunk" has a vertex at "17,4,-1" |
| 709 |
|
| 710 |
Scenario: Link IFC - from an empty Blender session - automatic false origin mode (a new false origin will be detected) |
| 711 |
Given an empty Blender session |
| 712 |
# Not currently possible via UI |
| 713 |
And I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 714 |
And I set "scene.BIMProjectProperties.false_origin_mode" to "AUTOMATIC" |
| 715 |
When I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation.ifc', use_cache=False)" |
| 716 |
Then the object "Chunk" exists |
| 717 |
And the object "Chunk" has a vertex at "-11,-2,0" |
| 718 |
And the object "Chunk" has a vertex at "-4,-5,0" |
| 719 |
And the object "Chunk" has a vertex at "4,0,0" |
| 720 |
|
| 721 |
Scenario: Link IFC - manual false origin mode |
| 722 |
Given an empty Blender session |
| 723 |
# Not currently possible via UI |
| 724 |
And I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 725 |
And I set "scene.BIMProjectProperties.false_origin_mode" to "MANUAL" |
| 726 |
And I set "scene.BIMProjectProperties.false_origin" to "10000,0,0" |
| 727 |
When I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation.ifc', use_cache=False)" |
| 728 |
Then the object "Chunk" exists |
| 729 |
And the object "Chunk" has a vertex at "-8,2,-1" |
| 730 |
And the object "Chunk" has a vertex at "-1,-1,-1" |
| 731 |
And the object "Chunk" has a vertex at "7,4,-1" |
| 732 |
|
| 733 |
Scenario: Link IFC - automatic false origin mode - two different false origins and project norths - grid north is up because we start with geolocation.ifc |
| 734 |
Given an empty Blender session |
| 735 |
# Not currently possible via UI |
| 736 |
And I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 737 |
And I set "scene.BIMProjectProperties.false_origin_mode" to "AUTOMATIC" |
| 738 |
When I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation.ifc', use_cache=False)" |
| 739 |
And I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation-mapconversion-angle.ifc', use_cache=False)" |
| 740 |
Then the object "Col:IfcProject/geolocation.ifc:Chunk" exists |
| 741 |
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" exists |
| 742 |
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "-11,-2,0" |
| 743 |
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "-4,-5,0" |
| 744 |
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "4,0,0" |
| 745 |
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "4.732,-3.268,0" |
| 746 |
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "9.294,-9.366,0" |
| 747 |
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "18.722,-9.036,0" |
| 748 |
|
| 749 |
Scenario: Link IFC - automatic false origin mode - two different false origins and project norths - project north is up because we start with geolocation-mapconversion-angle.ifc |
| 750 |
Given an empty Blender session |
| 751 |
# Not currently possible via UI |
| 752 |
And I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 753 |
And I set "scene.BIMProjectProperties.false_origin_mode" to "AUTOMATIC" |
| 754 |
When I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation-mapconversion-angle.ifc', use_cache=False)" |
| 755 |
And I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation.ifc', use_cache=False)" |
| 756 |
Then the object "Col:IfcProject/geolocation.ifc:Chunk" exists |
| 757 |
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" exists |
| 758 |
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "-11,-2,0" |
| 759 |
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "-4,-5,0" |
| 760 |
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "4,0,0" |
| 761 |
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "-25.258,-8.768,0" |
| 762 |
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "-17.696,-7.866,0" |
| 763 |
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "-13.268,0.464,0" |
| 764 |
|
| 765 |
Scenario: Link IFC - automatic false origin mode - three identical false origins but different project and map units |
| 766 |
Given an empty Blender session |
| 767 |
# Not currently possible via UI |
| 768 |
And I set "scene.BIMProjectProperties.distance_limit" to "5" |
| 769 |
And I set "scene.BIMProjectProperties.false_origin_mode" to "AUTOMATIC" |
| 770 |
When I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation-unit1.ifc', use_cache=False)" |
| 771 |
And I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation-unit2.ifc', use_cache=False)" |
| 772 |
And I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation-unit3.ifc', use_cache=False)" |
| 773 |
Then the object "Col:IfcProject/geolocation-unit1.ifc:Chunk" exists |
| 774 |
And the object "Col:IfcProject/geolocation-unit2.ifc:Chunk" exists |
| 775 |
And the object "Col:IfcProject/geolocation-unit3.ifc:Chunk" exists |
| 776 |
And the object "Col:IfcProject/geolocation-unit1.ifc:Chunk" has a vertex at "7.294,-5.366,-1" |
| 777 |
And the object "Col:IfcProject/geolocation-unit2.ifc:Chunk" has a vertex at "7.294,-5.366,-1" |
| 778 |
And the object "Col:IfcProject/geolocation-unit3.ifc:Chunk" has a vertex at "7.294,-5.366,-1" |
| 779 |
|
| 780 |
Scenario: Toggle link visibility - wireframe mode |
| 781 |
Given an empty IFC project |
| 782 |
And I press "bim.link_ifc(filepath='{cwd}/test/files/basic.ifc')" |
| 783 |
When I press "bim.toggle_link_visibility(link='{cwd}/test/files/basic.ifc', mode='WIREFRAME')" |
| 784 |
Then "scene.BIMProjectProperties.links['{cwd}/test/files/basic.ifc'].is_wireframe" is "True" |
| 785 |
And the object "Chunk" should display as "WIRE" |
| 786 |
When I press "bim.toggle_link_visibility(link='{cwd}/test/files/basic.ifc', mode='WIREFRAME')" |
| 787 |
Then "scene.BIMProjectProperties.links['{cwd}/test/files/basic.ifc'].is_wireframe" is "False" |
| 788 |
And the object "Chunk" should display as "TEXTURED" |
| 789 |
|
| 790 |
Scenario: Toggle link selectability |
| 791 |
Given an empty IFC project |
| 792 |
And I press "bim.link_ifc(filepath='{cwd}/test/files/basic.ifc')" |
| 793 |
When I press "bim.toggle_link_selectability(link='{cwd}/test/files/basic.ifc')" |
| 794 |
Then "scene.BIMProjectProperties.links['{cwd}/test/files/basic.ifc'].is_selectable" is "False" |
| 795 |
And the collection "IfcProject/basic.ifc" is unselectable |
| 796 |
When I press "bim.toggle_link_selectability(link='{cwd}/test/files/basic.ifc')" |
| 797 |
Then "scene.BIMProjectProperties.links['{cwd}/test/files/basic.ifc'].is_selectable" is "True" |
| 798 |
And the collection "IfcProject/basic.ifc" is selectable |
| 799 |
|
| 800 |
Scenario: Toggle link visibility - visible mode |
| 801 |
Given an empty IFC project |
| 802 |
And I press "bim.link_ifc(filepath='{cwd}/test/files/basic.ifc')" |
| 803 |
When I press "bim.toggle_link_visibility(link='{cwd}/test/files/basic.ifc', mode='VISIBLE')" |
| 804 |
Then "scene.BIMProjectProperties.links['{cwd}/test/files/basic.ifc'].is_hidden" is "True" |
| 805 |
And the object "IfcProject/basic.ifc" is not visible |
| 806 |
When I press "bim.toggle_link_visibility(link='{cwd}/test/files/basic.ifc', mode='VISIBLE')" |
| 807 |
Then "scene.BIMProjectProperties.links['{cwd}/test/files/basic.ifc'].is_hidden" is "False" |
| 808 |
And the object "IfcProject/basic.ifc" is visible |
| 809 |
|
| 810 |
Scenario: Unload link |
| 811 |
Given an empty Blender session |
| 812 |
And I press "bim.link_ifc(filepath='{cwd}/test/files/basic.ifc')" |
| 813 |
When I press "bim.unload_link(filepath='{cwd}/test/files/basic.ifc')" |
| 814 |
Then "scene.BIMProjectProperties.links['{cwd}/test/files/basic.ifc'].is_loaded" is "False" |
| 815 |
And the collection "IfcProject/basic.ifc" does not exist |
| 816 |
|
| 817 |
Scenario: Load link |
| 818 |
Given an empty Blender session |
| 819 |
And I press "bim.link_ifc(filepath='{cwd}/test/files/basic.ifc')" |
| 820 |
And I press "bim.unload_link(filepath='{cwd}/test/files/basic.ifc')" |
| 821 |
When I press "bim.load_link(filepath='{cwd}/test/files/basic.ifc')" |
| 822 |
Then "scene.BIMProjectProperties.links['{cwd}/test/files/basic.ifc'].is_loaded" is "True" |
| 823 |
And the object "IfcProject/basic.ifc" exists |
| 824 |
|
| 825 |
Scenario: Unlink IFC |
| 826 |
Given an empty Blender session |
| 827 |
And I press "bim.link_ifc(filepath='{cwd}/test/files/basic.ifc')" |
| 828 |
And I press "bim.unload_link(filepath='{cwd}/test/files/basic.ifc')" |
| 829 |
When I press "bim.unlink_ifc(filepath='{cwd}/test/files/basic.ifc')" |
| 830 |
Then "scene.BIMProjectProperties.links.get('{cwd}/test/files/basic.ifc')" is "None" |
| 831 |
And "scene.collection.children.get('IfcProject/basic.ifc')" is "None" |
| 832 |
And the object "Chunk" does not exist |
| 833 |
|
| 834 |
Scenario: Export IFC - blank project |
| 835 |
Given an empty IFC project |
| 836 |
When I press "bim.save_project(filepath='{cwd}/test/files/temp/export.ifc')" |
| 837 |
Then nothing happens |
| 838 |
|
| 839 |
Scenario: Export IFC - with basic contents |
| 840 |
Given an empty Blender session |
| 841 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc')" |
| 842 |
When I press "bim.save_project(filepath='{cwd}/test/files/temp/export.ifc')" |
| 843 |
Then "scene.BIMProperties.ifc_file" is "{cwd}/test/files/temp/export.ifc" |
| 844 |
|
| 845 |
Scenario: Export IFC - with basic contents and saving as another file |
| 846 |
Given an empty Blender session |
| 847 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc')" |
| 848 |
When I press "bim.save_project(filepath='{cwd}/test/files/temp/export.ifc', should_save_as=True)" |
| 849 |
Then "scene.BIMProperties.ifc_file" is "{cwd}/test/files/temp/export.ifc" |
| 850 |
|
| 851 |
Scenario: Export IFC - with basic contents and saving as IfcJSON where import is not supported |
| 852 |
Given an empty Blender session |
| 853 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc')" |
| 854 |
When I press "bim.save_project(filepath='{cwd}/test/files/temp/export.ifcjson', should_save_as=True)" |
| 855 |
Then "scene.BIMProperties.ifc_file" is "{cwd}/test/files/basic.ifc" |
| 856 |
|
| 857 |
Scenario: Export IFC - with basic contents and round-tripping an IfcZip |
| 858 |
Given an empty Blender session |
| 859 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc')" |
| 860 |
When I press "bim.save_project(filepath='{cwd}/test/files/temp/export.ifczip', should_save_as=True)" |
| 861 |
Then "scene.BIMProperties.ifc_file" is "{cwd}/test/files/basic.ifc" |
| 862 |
When an empty Blender session is started |
| 863 |
And I press "bim.load_project(filepath='{cwd}/test/files/temp/export.ifczip')" |
| 864 |
Then the object "IfcProject/My Project" is an "IfcProject" |
| 865 |
|
| 866 |
Scenario: Export IFC - with basic contents and saving as a relative path |
| 867 |
Given an empty Blender session |
| 868 |
And I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc')" |
| 869 |
When I press "wm.save_mainfile(filepath='{cwd}/test/files/temp/export.blend')" |
| 870 |
And I press "bim.save_project(filepath='{cwd}/test/files/temp/export.ifc', use_relative_path=True, should_save_as=True)" |
| 871 |
Then "scene.BIMProperties.ifc_file" is "export.ifc" |
| 872 |
|
| 873 |
Scenario: Export IFC - with deleted objects synchronised |
| 874 |
Given an empty IFC project |
| 875 |
When the object "IfcBuildingStorey/My Storey" is selected |
| 876 |
And I set "scene.BIMSpatialDecompositionProperties.is_locked" to "False" |
| 877 |
And I delete the selected objects |
| 878 |
And I press "bim.save_project(filepath='{cwd}/test/files/temp/export.ifc')" |
| 879 |
And an empty Blender session is started |
| 880 |
And I press "bim.load_project(filepath='{cwd}/test/files/temp/export.ifc')" |
| 881 |
Then the object "IfcBuildingStorey/My Storey" does not exist |
| 882 |
|
| 883 |
Scenario: Export IFC - with moved object location synchronised |
| 884 |
Given an empty IFC project |
| 885 |
When the object "IfcBuildingStorey/My Storey" is moved to "0,0,1" |
| 886 |
And I press "bim.save_project(filepath='{cwd}/test/files/temp/export.ifc')" |
| 887 |
And an empty Blender session is started |
| 888 |
And I press "bim.load_project(filepath='{cwd}/test/files/temp/export.ifc')" |
| 889 |
Then the object "IfcBuildingStorey/My Storey" is at "0,0,1" |
| 890 |
|
| 891 |
Scenario: Export IFC - with moved grid axis location synchronised |
| 892 |
Given an empty IFC project |
| 893 |
And I press "mesh.add_grid" |
| 894 |
When the object "IfcGridAxis/01" is moved to "1,0,0" |
| 895 |
And I press "bim.save_project(filepath='{cwd}/test/files/temp/export.ifc')" |
| 896 |
And an empty Blender session is started |
| 897 |
And I press "bim.load_project(filepath='{cwd}/test/files/temp/export.ifc')" |
| 898 |
Then the object "IfcGridAxis/01" bottom left corner is at "1,-2,0" |
| 899 |
|
| 900 |
Scenario: Export IFC - with changed object scale ignored |
| 901 |
Given an empty IFC project |
| 902 |
And I add a cube |
| 903 |
And the object "Cube" is selected |
| 904 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 905 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 906 |
And I press "bim.assign_class" |
| 907 |
And the object "IfcWall/Cube" is selected |
| 908 |
When the object "IfcWall/Cube" is scaled to "2" |
| 909 |
And I press "bim.save_project(filepath='{cwd}/test/files/temp/export.ifc')" |
| 910 |
And an empty Blender session is started |
| 911 |
And I press "bim.load_project(filepath='{cwd}/test/files/temp/export.ifc')" |
| 912 |
Then the object "IfcWall/Cube" dimensions are "2,2,2" |