You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/blenderbim/test/bim/feature/project.feature
+67-4Lines changed: 67 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -454,10 +454,10 @@ Scenario: Load project elements - all georeferencing coordinate situations with
454
454
Scenario: Load project elements - all georeferencing coordinate situations with an offset site - manual false origin mode
455
455
Given an empty Blender session
456
456
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-offsetsite.ifc', is_advanced=True)"
457
-
WhenI set "scene.BIMProjectProperties.false_origin_mode" to "MANUAL"
458
-
WhenI set "scene.BIMProjectProperties.false_origin" to "0,10000,0"
459
-
WhenI set "scene.BIMProjectProperties.distance_limit" to "5"
460
-
AndI press "bim.load_project_elements"
457
+
AndI set "scene.BIMProjectProperties.false_origin_mode" to "MANUAL"
458
+
AndI set "scene.BIMProjectProperties.false_origin" to "0,10000,0"
459
+
AndI set "scene.BIMProjectProperties.distance_limit" to "5"
460
+
WhenI press "bim.load_project_elements"
461
461
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "True"
462
462
And "scene.BIMGeoreferenceProperties.blender_eastings" is "0.0"
463
463
And "scene.BIMGeoreferenceProperties.blender_northings" is "10000.0"
@@ -489,6 +489,36 @@ Scenario: Load project elements - all georeferencing coordinate situations with
489
489
And the object "IfcActuator/J" has a vertex at "10.366,3.813,-1"
490
490
And the object "IfcActuator/J" has a vertex at "12.298,4.331,-1"
491
491
492
+
Scenario: Load project elements - all georeferencing coordinate situations with an offset site - manual false origin mode - with custom project north
493
+
Given an empty Blender session
494
+
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-offsetsite.ifc', is_advanced=True)"
495
+
And I set "scene.BIMProjectProperties.false_origin_mode" to "MANUAL"
496
+
And I set "scene.BIMProjectProperties.false_origin" to "0,10000,0"
497
+
And I set "scene.BIMProjectProperties.project_north" to "-15"
498
+
And I set "scene.BIMProjectProperties.distance_limit" to "5"
499
+
When I press "bim.load_project_elements"
500
+
Then "scene.BIMGeoreferenceProperties.has_blender_offset" is "True"
501
+
And "scene.BIMGeoreferenceProperties.blender_eastings" is "0.0"
502
+
And "scene.BIMGeoreferenceProperties.blender_northings" is "10000.0"
503
+
And "scene.BIMGeoreferenceProperties.blender_orthogonal_height" is "0.0"
504
+
And "scene.BIMGeoreferenceProperties.blender_offset_x" is "0.0"
505
+
And "scene.BIMGeoreferenceProperties.blender_offset_y" is "10000.0"
506
+
And "scene.BIMGeoreferenceProperties.blender_offset_z" is "0.0"
507
+
And the object "IfcSite/My Site" is at "0,0,0"
508
+
And the object "IfcBuilding/My Building" is at "0,0,0"
509
+
And the object "IfcBuildingStorey/My Storey" is at "0,0,0"
510
+
And the object "IfcActuator/A" is at "7,3,0"
511
+
And the object "IfcActuator/B" is at "6,1,0"
512
+
And the object "IfcActuator/C" is at "0,0,0"
513
+
And the object "IfcActuator/D" is at "13,4,-1"
514
+
And the object "IfcActuator/E" is at "6,3,0"
515
+
And the object "IfcActuator/F" is at "3,3,0"
516
+
And the object "IfcActuator/G" is at "15,6,-1"
517
+
And the object "IfcActuator/H" is at "9,2,0"
518
+
And the object "IfcActuator/I" is at "3,3,0"
519
+
And the object "IfcActuator/J" is at "11,3,-1"
520
+
And the object "IfcActuator/K" is at "10,0,0"
521
+
492
522
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)
493
523
Given an empty Blender session
494
524
And I press "bim.load_project(filepath='{cwd}/test/files/geolocation-mapconversion.ifc', is_advanced=True)"
Scenario: Link IFC - automatic false origin mode - two different false origins and project norths - grid north is up because we start with geolocation.ifc
752
+
Given an empty Blender session
753
+
# Not currently possible via UI
754
+
And I set "scene.BIMProjectProperties.distance_limit" to "5"
755
+
And I set "scene.BIMProjectProperties.false_origin_mode" to "AUTOMATIC"
756
+
When I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation.ifc', use_cache=False)"
757
+
And I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation-mapconversion-angle.ifc', use_cache=False)"
758
+
Then the object "Col:IfcProject/geolocation.ifc:Chunk" exists
759
+
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" exists
760
+
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "-11,-2,0"
761
+
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "-4,-5,0"
762
+
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "4,0,0"
763
+
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "4.732,-3.268,0"
764
+
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "9.294,-9.366,0"
765
+
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "18.722,-9.036,0"
766
+
767
+
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
768
+
Given an empty Blender session
769
+
# Not currently possible via UI
770
+
And I set "scene.BIMProjectProperties.distance_limit" to "5"
771
+
And I set "scene.BIMProjectProperties.false_origin_mode" to "AUTOMATIC"
772
+
When I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation-mapconversion-angle.ifc', use_cache=False)"
773
+
And I press "bim.link_ifc(filepath='{cwd}/test/files/geolocation.ifc', use_cache=False)"
774
+
Then the object "Col:IfcProject/geolocation.ifc:Chunk" exists
775
+
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" exists
776
+
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "-11,-2,0"
777
+
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "-4,-5,0"
778
+
And the object "Col:IfcProject/geolocation-mapconversion-angle.ifc:Chunk" has a vertex at "4,0,0"
779
+
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "-25.258,-8.768,0"
780
+
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "-17.696,-7.866,0"
781
+
And the object "Col:IfcProject/geolocation.ifc:Chunk" has a vertex at "-13.268,0.464,0"
782
+
783
+
721
784
Scenario: Toggle link visibility - wireframe mode
722
785
Given an empty IFC project
723
786
And I press "bim.link_ifc(filepath='{cwd}/test/files/basic.ifc')"
0 commit comments