Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

JSON viewpoint mapper spec

Oliver Güntherd3594766c8ce
diff --git a/Gemfile b/Gemfile
index 6a8d34b2a79..eb885674f97 100644
--- a/Gemfile
+++ b/Gemfile
@@ -187,13 +187,6 @@ group :test do
gem 'rack-test', '~> 1.1.0'
gem 'shoulda-context', '~> 1.2'
- # Require factory_bot for usage with openproject plugins testing
- # FactoryBot needs to be available when loading app otherwise factory
- # definitions from core are not available in the plugin thus specs break
- gem 'factory_bot', '~> 4.8'
- # require factory_bot_rails for convenience in core development
- gem 'factory_bot_rails', '~> 4.8', require: false
-
# Test prof provides factories from code
# and other niceties
gem 'test-prof', '~> 0.10.0'
@@ -251,6 +244,11 @@ end
group :development, :test do
gem 'thin', '~> 1.7.2'
+ # Require factory_bot for usage with openproject plugins testing
+ gem 'factory_bot', '~> 4.8'
+ # require factory_bot_rails for convenience in core development
+ gem 'factory_bot_rails', '~> 4.8'
+
# Tracing and profiling gems
gem 'flamegraph', require: false
gem 'rack-mini-profiler', require: false
diff --git a/modules/bcf/lib/open_project/bcf/bcf_json/viewpoint_mapper.rb b/modules/bcf/lib/open_project/bcf/bcf_json/viewpoint_mapper.rb
index 784673cf84d..c44fbb339b3 100644
--- a/modules/bcf/lib/open_project/bcf/bcf_json/viewpoint_mapper.rb
+++ b/modules/bcf/lib/open_project/bcf/bcf_json/viewpoint_mapper.rb
@@ -111,6 +111,9 @@ module OpenProject::Bcf
selections = hash.dig('components', 'selection', 'component')
return unless selections
+ # Skip any components that have no guid
+ selections.select! { |item| item['ifc_guid'] }
+
hash['components']['selection'] = selections
end
@@ -126,6 +129,9 @@ module OpenProject::Bcf
hash['components']['coloring'] = colors.map do |entry|
# Prepend hash for hex color
entry['color'] = "##{entry['color']}"
+
+ # Fix items name
+ entry['components'] = entry.delete('component')
entry
end
end
diff --git a/modules/bcf/spec/factories/bcf_viewpoint_factory.rb b/modules/bcf/spec/factories/bcf_viewpoint_factory.rb
index 9f0d0acaf9f..5c08dbf9900 100644
--- a/modules/bcf/spec/factories/bcf_viewpoint_factory.rb
+++ b/modules/bcf/spec/factories/bcf_viewpoint_factory.rb
@@ -37,123 +37,14 @@ FactoryBot.define do
factory :bcf_viewpoint, class: ::Bcf::Viewpoint do
new_uuid = SecureRandom.uuid
uuid { new_uuid }
- viewpoint_name { "Viewpoint_#{new_uuid}.bcfv" }
+ viewpoint_name { "full_viewpoint.bcfv" }
viewpoint do
- <<~MARKUP
- <?xml version="1.0" encoding="utf-8"?>
- <!--Created with the iabi.BCF library, V1.1.0 at 22.05.2017 09:51. Visit http://iabi.eu to find out more.-->
- <VisualizationInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="8dc86298-9737-40b4-a448-98a9e953293a">
- <Components>
- <ViewSetupHints SpacesVisible="true" SpaceBoundariesVisible="true" OpeningsVisible="true" />
- <Selection>
- <Component IfcGuid="0cSRUx$EX1NRjqiKcYQ$a0" />
- <Component IfcGuid="1jQQiGIAnFzxOUzrdmJYDS" />
- <Component IfcGuid="0fdpeZZEX3FwJ7x0ox5kzF" />
- <Component IfcGuid="23Zwlpd71EyvHlH6OZ77nK" />
- <Component IfcGuid="1OpjQ1Nlv4sQuTxfUC_8zS" />
- </Selection>
- <Visibility DefaultVisibility="true">
- <Exceptions>
- <Component IfcGuid="0Gl71cVurFn8bxAOox6M4X" />
- <Component IfcGuid="23Zwlpd71EyvHlH6OZ77nK" />
- <Component IfcGuid="3DvyPxGIn8qR0KDwbL_9r1" />
- <Component IfcGuid="0fdpeZZEX3FwJ7x0ox5kzF" />
- <Component IfcGuid="1OpjQ1Nlv4sQuTxfUC_8zS" />
- </Exceptions>
- </Visibility>
- <Coloring>
- <Color Color="3498db">
- <Component IfcGuid="0fdpeZZEX3FwJ7x0ox5kzF" />
- <Component IfcGuid="23Zwlpd71EyvHlH6OZ77nK" />
- <Component IfcGuid="1OpjQ1Nlv4sQuTxfUC_8zS" />
- <Component IfcGuid="0cSRUx$EX1NRjqiKcYQ$a0" />
- </Color>
- </Coloring>
- </Components>
- <PerspectiveCamera>
- <CameraViewPoint>
- <X>12.2088897788292</X>
- <Y>52.323145074034</Y>
- <Z>5.24072091171001</Z>
- </CameraViewPoint>
- <CameraDirection>
- <X>-0.381615611200324</X>
- <Y>-0.825232810204882</Y>
- <Z>-0.416365617893758</Z>
- </CameraDirection>
- <CameraUpVector>
- <X>0.05857014928797</X>
- <Y>0.126656300502579</Y>
- <Z>0.990215996212637</Z>
- </CameraUpVector>
- <FieldOfView>60</FieldOfView>
- </PerspectiveCamera>
- <Lines>
- <Line>
- <StartPoint>
- <X>0</X>
- <Y>0</Y>
- <Z>0</Z>
- </StartPoint>
- <EndPoint>
- <X>0</X>
- <Y>0</Y>
- <Z>1</Z>
- </EndPoint>
- </Line>
- <Line>
- <StartPoint>
- <X>0</X>
- <Y>0</Y>
- <Z>1</Z>
- </StartPoint>
- <EndPoint>
- <X>0</X>
- <Y>1</Y>
- <Z>1</Z>
- </EndPoint>
- </Line>
- <Line>
- <StartPoint>
- <X>0</X>
- <Y>1</Y>
- <Z>1</Z>
- </StartPoint>
- <EndPoint>
- <X>1</X>
- <Y>1</Y>
- <Z>1</Z>
- </EndPoint>
- </Line>
- </Lines>
- <ClippingPlanes>
- <ClippingPlane>
- <Location>
- <X>0</X>
- <Y>0</Y>
- <Z>0</Z>
- </Location>
- <Direction>
- <X>0</X>
- <Y>0</Y>
- <Z>1</Z>
- </Direction>
- </ClippingPlane>
- <ClippingPlane>
- <Location>
- <X>0</X>
- <Y>0</Y>
- <Z>0</Z>
- </Location>
- <Direction>
- <X>0</X>
- <Y>1</Y>
- <Z>0</Z>
- </Direction>
- </ClippingPlane>
- </ClippingPlanes>
- </VisualizationInfo>
- MARKUP
+ file = OpenProject::Bcf::Engine.root.join("spec/fixtures/viewpoints/#{viewpoint_name}.xml")
+ if file.readable?
+ file.read
+ else
+ warn "Viewpoint name #{viewpoint_name} doesnt map to a viewpoint fixture"
+ end
end
transient do
diff --git a/modules/bcf/spec/fixtures/viewpoints/full_viewpoint.bcfv.json b/modules/bcf/spec/fixtures/viewpoints/full_viewpoint.bcfv.json
new file mode 100644
index 00000000000..e0b79fd217a
--- /dev/null
+++ b/modules/bcf/spec/fixtures/viewpoints/full_viewpoint.bcfv.json
@@ -0,0 +1,148 @@
+{
+ "guid": "{{UUID}}",
+ "components": {
+ "selection": [
+ {
+ "ifc_guid": "0cSRUx$EX1NRjqiKcYQ$a0"
+ },
+ {
+ "ifc_guid": "1jQQiGIAnFzxOUzrdmJYDS"
+ },
+ {
+ "ifc_guid": "0fdpeZZEX3FwJ7x0ox5kzF"
+ },
+ {
+ "ifc_guid": "23Zwlpd71EyvHlH6OZ77nK"
+ },
+ {
+ "ifc_guid": "1OpjQ1Nlv4sQuTxfUC_8zS"
+ }
+ ],
+ "visibility": {
+ "default_visibility": true,
+ "exceptions": [
+ {
+ "ifc_guid": "0Gl71cVurFn8bxAOox6M4X"
+ },
+ {
+ "ifc_guid": "23Zwlpd71EyvHlH6OZ77nK"
+ },
+ {
+ "ifc_guid": "3DvyPxGIn8qR0KDwbL_9r1"
+ },
+ {
+ "ifc_guid": "0fdpeZZEX3FwJ7x0ox5kzF"
+ },
+ {
+ "ifc_guid": "1OpjQ1Nlv4sQuTxfUC_8zS"
+ }
+ ],
+ "view_setup_hints": {
+ "spaces_visible": true,
+ "space_boundaries_visible": true,
+ "openings_visible": true
+ }
+ },
+ "coloring": [
+ {
+ "color": "#3498db",
+ "components": [
+ {
+ "ifc_guid": "0fdpeZZEX3FwJ7x0ox5kzF"
+ },
+ {
+ "ifc_guid": "23Zwlpd71EyvHlH6OZ77nK"
+ },
+ {
+ "ifc_guid": "1OpjQ1Nlv4sQuTxfUC_8zS"
+ },
+ {
+ "ifc_guid": "0cSRUx$EX1NRjqiKcYQ$a0"
+ }
+ ]
+ }
+ ]
+ },
+ "perspective_camera": {
+ "camera_view_point": {
+ "x": 12.2088897788292,
+ "y": 52.323145074034,
+ "z": 5.24072091171001
+ },
+ "camera_direction": {
+ "x": -0.381615611200324,
+ "y": -0.825232810204882,
+ "z": -0.416365617893758
+ },
+ "camera_up_vector": {
+ "x": 0.05857014928797,
+ "y": 0.126656300502579,
+ "z": 0.990215996212637
+ },
+ "field_of_view": 60.0
+ },
+ "lines": [
+ {
+ "start_point": {
+ "x": 0.0,
+ "y": 0.0,
+ "z": 0.0
+ },
+ "end_point": {
+ "x": 0.0,
+ "y": 0.0,
+ "z": 1.0
+ }
+ },
+ {
+ "start_point": {
+ "x": 0.0,
+ "y": 0.0,
+ "z": 1.0
+ },
+ "end_point": {
+ "x": 0.0,
+ "y": 1.0,
+ "z": 1.0
+ }
+ },
+ {
+ "start_point": {
+ "x": 0.0,
+ "y": 1.0,
+ "z": 1.0
+ },
+ "end_point": {
+ "x": 1.0,
+ "y": 1.0,
+ "z": 1.0
+ }
+ }
+ ],
+ "clipping_planes": [
+ {
+ "location": {
+ "x": 0.0,
+ "y": 0.0,
+ "z": 0.0
+ },
+ "direction": {
+ "x": 0.0,
+ "y": 0.0,
+ "z": 1.0
+ }
+ },
+ {
+ "location": {
+ "x": 0.0,
+ "y": 0.0,
+ "z": 0.0
+ },
+ "direction": {
+ "x": 0.0,
+ "y": 1.0,
+ "z": 0.0
+ }
+ }
+ ]
+}
diff --git a/modules/bcf/spec/fixtures/viewpoints/full_viewpoint.bcfv.xml b/modules/bcf/spec/fixtures/viewpoints/full_viewpoint.bcfv.xml
new file mode 100644
index 00000000000..aa3ace55b23
--- /dev/null
+++ b/modules/bcf/spec/fixtures/viewpoints/full_viewpoint.bcfv.xml
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Created with the iabi.BCF library, V1.1.0 at 22.05.2017 09:51. Visit http://iabi.eu to find out more.-->
+<VisualizationInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="8dc86298-9737-40b4-a448-98a9e953293a">
+ <Components>
+ <ViewSetupHints SpacesVisible="true" SpaceBoundariesVisible="true" OpeningsVisible="true" />
+ <Selection>
+ <Component IfcGuid="0cSRUx$EX1NRjqiKcYQ$a0" />
+ <Component IfcGuid="1jQQiGIAnFzxOUzrdmJYDS" />
+ <Component IfcGuid="0fdpeZZEX3FwJ7x0ox5kzF" />
+ <Component IfcGuid="23Zwlpd71EyvHlH6OZ77nK" />
+ <Component IfcGuid="1OpjQ1Nlv4sQuTxfUC_8zS" />
+ </Selection>
+ <Visibility DefaultVisibility="true">
+ <Exceptions>
+ <Component IfcGuid="0Gl71cVurFn8bxAOox6M4X" />
+ <Component IfcGuid="23Zwlpd71EyvHlH6OZ77nK" />
+ <Component IfcGuid="3DvyPxGIn8qR0KDwbL_9r1" />
+ <Component IfcGuid="0fdpeZZEX3FwJ7x0ox5kzF" />
+ <Component IfcGuid="1OpjQ1Nlv4sQuTxfUC_8zS" />
+ </Exceptions>
+ </Visibility>
+ <Coloring>
+ <Color Color="3498db">
+ <Component IfcGuid="0fdpeZZEX3FwJ7x0ox5kzF" />
+ <Component IfcGuid="23Zwlpd71EyvHlH6OZ77nK" />
+ <Component IfcGuid="1OpjQ1Nlv4sQuTxfUC_8zS" />
+ <Component IfcGuid="0cSRUx$EX1NRjqiKcYQ$a0" />
+ </Color>
+ </Coloring>
+ </Components>
+ <PerspectiveCamera>
+ <CameraViewPoint>
+ <X>12.2088897788292</X>
+ <Y>52.323145074034</Y>
+ <Z>5.24072091171001</Z>
+ </CameraViewPoint>
+ <CameraDirection>
+ <X>-0.381615611200324</X>
+ <Y>-0.825232810204882</Y>
+ <Z>-0.416365617893758</Z>
+ </CameraDirection>
+ <CameraUpVector>
+ <X>0.05857014928797</X>
+ <Y>0.126656300502579</Y>
+ <Z>0.990215996212637</Z>
+ </CameraUpVector>
+ <FieldOfView>60</FieldOfView>
+ </PerspectiveCamera>
+ <Lines>
+ <Line>
+ <StartPoint>
+ <X>0</X>
+ <Y>0</Y>
+ <Z>0</Z>
+ </StartPoint>
+ <EndPoint>
+ <X>0</X>
+ <Y>0</Y>
+ <Z>1</Z>
+ </EndPoint>
+ </Line>
+ <Line>
+ <StartPoint>
+ <X>0</X>
+ <Y>0</Y>
+ <Z>1</Z>
+ </StartPoint>
+ <EndPoint>
+ <X>0</X>
+ <Y>1</Y>
+ <Z>1</Z>
+ </EndPoint>
+ </Line>
+ <Line>
+ <StartPoint>
+ <X>0</X>
+ <Y>1</Y>
+ <Z>1</Z>
+ </StartPoint>
+ <EndPoint>
+ <X>1</X>
+ <Y>1</Y>
+ <Z>1</Z>
+ </EndPoint>
+ </Line>
+ </Lines>
+ <ClippingPlanes>
+ <ClippingPlane>
+ <Location>
+ <X>0</X>
+ <Y>0</Y>
+ <Z>0</Z>
+ </Location>
+ <Direction>
+ <X>0</X>
+ <Y>0</Y>
+ <Z>1</Z>
+ </Direction>
+ </ClippingPlane>
+ <ClippingPlane>
+ <Location>
+ <X>0</X>
+ <Y>0</Y>
+ <Z>0</Z>
+ </Location>
+ <Direction>
+ <X>0</X>
+ <Y>1</Y>
+ <Z>0</Z>
+ </Direction>
+ </ClippingPlane>
+ </ClippingPlanes>
+</VisualizationInfo>
\ No newline at end of file
diff --git a/modules/bcf/spec/fixtures/viewpoints/minimal.bcfv.json b/modules/bcf/spec/fixtures/viewpoints/minimal.bcfv.json
new file mode 100644
index 00000000000..de121a4c73c
--- /dev/null
+++ b/modules/bcf/spec/fixtures/viewpoints/minimal.bcfv.json
@@ -0,0 +1,21 @@
+{
+ "guid": "{{UUID}}",
+ "orthogonal_camera": {
+ "camera_view_point": {
+ "x": 12.3456789,
+ "y": 1.2345,
+ "z": -1234.1234
+ },
+ "camera_direction": {
+ "x": -1.0,
+ "y": -2.0,
+ "z": -3.0
+ },
+ "camera_up_vector": {
+ "x": 0.223629,
+ "y": 0.209889,
+ "z": 0.951807
+ },
+ "field_of_view": 180.0
+ }
+}
\ No newline at end of file
diff --git a/modules/bcf/spec/fixtures/viewpoints/minimal.bcfv.xml b/modules/bcf/spec/fixtures/viewpoints/minimal.bcfv.xml
new file mode 100644
index 00000000000..780ee5877a2
--- /dev/null
+++ b/modules/bcf/spec/fixtures/viewpoints/minimal.bcfv.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VisualizationInfo Guid="08a379aa-43d0-5160-3d92-1d16a24ed182">
+ <OrthogonalCamera>
+ <CameraViewPoint>
+ <X>12.3456789</X>
+ <Y>1.2345</Y>
+ <Z>-1234.1234</Z>
+ </CameraViewPoint>
+ <CameraDirection>
+ <X>-1.0</X>
+ <Y>-2.0</Y>
+ <Z>-3</Z>
+ </CameraDirection>
+ <CameraUpVector>
+ <X>0.223629</X>
+ <Y>0.209889</Y>
+ <Z>0.951807</Z>
+ </CameraUpVector>
+ <FieldOfView>180</FieldOfView>
+ </OrthogonalCamera>
+</VisualizationInfo>
\ No newline at end of file
diff --git a/modules/bcf/spec/fixtures/viewpoints/neubau_sc_1.bcfv.json b/modules/bcf/spec/fixtures/viewpoints/neubau_sc_1.bcfv.json
new file mode 100644
index 00000000000..4aee7f776f3
--- /dev/null
+++ b/modules/bcf/spec/fixtures/viewpoints/neubau_sc_1.bcfv.json
@@ -0,0 +1,553 @@
+{
+ "guid": "{{UUID}}",
+ "components": {
+ "selection": [
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkc$"
+ },
+ {
+ "ifc_guid": "2IzdhaXk1DxQeoZSeKbhcz"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyCk"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyCj"
+ },
+ {
+ "ifc_guid": "2VwVShDiz0gAl$BsweUrbl"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyDZ"
+ },
+ {
+ "ifc_guid": "30Vi1xXgzEtA72FJfoLgwc"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyCe"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyDR"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBr"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkb$"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyDP"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBn"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyDM"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkb_"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcN"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyDK"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyDJ"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcM"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcL"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcK"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkbZ"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkbY"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcF"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyDB"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcD"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcC"
+ },
+ {
+ "ifc_guid": "13osNZG6b1HvGnEwG5IBDr"
+ },
+ {
+ "ifc_guid": "3W4DSy3pb33QWyGgzgo0pw"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkc8"
+ },
+ {
+ "ifc_guid": "0E1Yt2xX98svHrdrMFg9cE"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkc7"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkc6"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkc5"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkc4"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkc2"
+ },
+ {
+ "ifc_guid": "30Vi1xXgzEtA72FJfoLgxk"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkc1"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkc0"
+ },
+ {
+ "ifc_guid": "2PzCZPHLj8bQL_hp3fERU1"
+ },
+ {
+ "ifc_guid": "1s$t1FRQf40wjxOyV1OVTV"
+ },
+ {
+ "ifc_guid": "13osNZG6b1HvGnEwG5IBE9"
+ },
+ {
+ "ifc_guid": "1pc0TFRcjAywrRV3HgpmMS"
+ },
+ {
+ "ifc_guid": "0wh07UsgP8mf3ADo8LWq7U"
+ },
+ {
+ "ifc_guid": "2VwVShDiz0gAl$BsweUrbX"
+ },
+ {
+ "ifc_guid": "0wh07UsgP8mf3ADo8LWq6X"
+ },
+ {
+ "ifc_guid": "3LnOhZYmz8UQwRTZK9roX$"
+ },
+ {
+ "ifc_guid": "3W4DSy3pb33QWyGgzgo0mc"
+ },
+ {
+ "ifc_guid": "2MXBDcWRP02P5tfnBdrHNU"
+ },
+ {
+ "ifc_guid": "2MXBDcWRP02P5tfnBdrHNT"
+ },
+ {
+ "ifc_guid": "3W4DSy3pb33QWyGgzgo0o9"
+ },
+ {
+ "ifc_guid": "3W4DSy3pb33QWyGgzgo0mW"
+ },
+ {
+ "ifc_guid": "2MXBDcWRP02P5tfnBdrHNJ"
+ },
+ {
+ "ifc_guid": "3bII83hyD6Yu$Mpez2jNcv"
+ },
+ {
+ "ifc_guid": "1qQCUVUprErw_MLQ7DcWOJ"
+ },
+ {
+ "ifc_guid": "1qQCUVUprErw_MLQ7DcWOI"
+ },
+ {
+ "ifc_guid": "1qQCUVUprErw_MLQ7DcWVj"
+ },
+ {
+ "ifc_guid": "1qQCUVUprErw_MLQ7DcWVi"
+ },
+ {
+ "ifc_guid": "1qQCUVUprErw_MLQ7DcWO6"
+ },
+ {
+ "ifc_guid": "1qQCUVUprErw_MLQ7DcWO5"
+ },
+ {
+ "ifc_guid": "1qQCUVUprErw_MLQ7DcWO4"
+ },
+ {
+ "ifc_guid": "2UWgTxbmTEourPAlYFxD8x"
+ },
+ {
+ "ifc_guid": "2UWgTxbmTEourPAlYFxD8v"
+ },
+ {
+ "ifc_guid": "2UWgTxbmTEourPAlYFxD8u"
+ },
+ {
+ "ifc_guid": "1mLIVAU39AxPo7CJmxmiBM"
+ },
+ {
+ "ifc_guid": "1gOilIRmfEGwb7$SzUoanJ"
+ },
+ {
+ "ifc_guid": "2OyfaLLJzADAvG7yl7qlqI"
+ },
+ {
+ "ifc_guid": "2OyfaLLJzADAvG7yl7qlnw"
+ },
+ {
+ "ifc_guid": "0e0$1G54f40AFFxJYqAOJk"
+ },
+ {
+ "ifc_guid": "2OyfaLLJzADAvG7yl7qlnr"
+ },
+ {
+ "ifc_guid": "2UWgTxbmTEourPAlYFxD8d"
+ },
+ {
+ "ifc_guid": "0e0$1G54f40AFFxJYqAOJi"
+ },
+ {
+ "ifc_guid": "2UWgTxbmTEourPAlYFxD8c"
+ },
+ {
+ "ifc_guid": "2UWgTxbmTEourPAlYFxD8a"
+ },
+ {
+ "ifc_guid": "1qQCUVUprErw_MLQ7DcWOz"
+ },
+ {
+ "ifc_guid": "1nQPsl2Nv5Uvj6quEKe7LN"
+ },
+ {
+ "ifc_guid": "1qQCUVUprErw_MLQ7DcWO_"
+ },
+ {
+ "ifc_guid": "1qQCUVUprErw_MLQ7DcWQN"
+ },
+ {
+ "ifc_guid": "1qQCUVUprErw_MLQ7DcWPL"
+ },
+ {
+ "ifc_guid": "2OyfaLLJzADAvG7yl7qln3"
+ },
+ {
+ "ifc_guid": "2OyfaLLJzADAvG7yl7qln0"
+ },
+ {
+ "ifc_guid": "0mQ6Us0RbAEwcMtmD0TDm6"
+ },
+ {
+ "ifc_guid": "2OyfaLLJzADAvG7yl7qlm1"
+ },
+ {
+ "ifc_guid": "1pc0TFRcjAywrRV3HgppMl"
+ },
+ {
+ "ifc_guid": "1pc0TFRcjAywrRV3HgppMh"
+ },
+ {
+ "ifc_guid": "1pc0TFRcjAywrRV3HgppMf"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjh"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjg"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkiv"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjf"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkja"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkj7"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhV"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkj6"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhU"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhT"
+ },
+ {
+ "ifc_guid": "0zsqKw7957Bh4NNjGz39d0"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhS"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkj3"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkj2"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhR"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhQ"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkj1"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkj0"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhP"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhO"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhM"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhL"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhK"
+ },
+ {
+ "ifc_guid": "1gOilIRmfEGwb7$SzUohOS"
+ },
+ {
+ "ifc_guid": "1azD0$4TTC1hgVDVWx5ITK"
+ },
+ {
+ "ifc_guid": "1azD0$4TTC1hgVDVWx5ITI"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjX"
+ },
+ {
+ "ifc_guid": "0LHXUGtOLEzvvIxaK5XMWV"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjW"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjT"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjS"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjR"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyAn"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyAl"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjN"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyAk"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjM"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjL"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyAi"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyD9"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjK"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyD8"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjJ"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkhi"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjI"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBV"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyAf"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjH"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkjG"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBR"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyAb"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyD2"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBQ"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBO"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBL"
+ },
+ {
+ "ifc_guid": "2Cc$KVYf55mfjggfx$IIb9"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBK"
+ },
+ {
+ "ifc_guid": "2Cc$KVYf55mfjggfx$IIb7"
+ },
+ {
+ "ifc_guid": "2Cc$KVYf55mfjggfx$IIb6"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkbz"
+ },
+ {
+ "ifc_guid": "0LHXUGtOLEzvvIxaK5XMW8"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBG"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkby"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBF"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkch"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBE"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBC"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcf"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkbu"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkbt"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyBA"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkca"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkbp"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkbo"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkbn"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkbm"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyB3"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkdD"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyB0"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcR"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcQ"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcP"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkh2"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkh1"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyDt"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcv"
+ },
+ {
+ "ifc_guid": "39_n9ZMhPAQBWcKbXoFkcu"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyDq"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyDk"
+ },
+ {
+ "ifc_guid": "1Uhsb9oeb77OoM87lbwyDf"
+ }
+ ]
+ },
+ "perspective_camera": {
+ "camera_view_point": {
+ "x": 58.1038,
+ "y": 16.5493,
+ "z": 24.7329
+ },
+ "camera_direction": {
+ "x": 1.28974,
+ "y": 1.2105,
+ "z": -0.569962
+ },
+ "camera_up_vector": {
+ "x": 0.223629,
+ "y": 0.209889,
+ "z": 0.951807
+ },
+ "field_of_view": 60.0
+ }
+}
\ No newline at end of file
diff --git a/modules/bcf/spec/fixtures/viewpoints/neubau_sc_1.bcfv.xml b/modules/bcf/spec/fixtures/viewpoints/neubau_sc_1.bcfv.xml
new file mode 100644
index 00000000000..b9f9669bbb2
--- /dev/null
+++ b/modules/bcf/spec/fixtures/viewpoints/neubau_sc_1.bcfv.xml
@@ -0,0 +1,945 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VisualizationInfo Guid="08a379aa-43d0-5160-3d92-1d16a24ed182">
+ <Components>
+ <Selection>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkc$"/>
+ <Component IfcGuid="2IzdhaXk1DxQeoZSeKbhcz"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyCk"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyCj"/>
+ <Component IfcGuid="2VwVShDiz0gAl$BsweUrbl"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyDZ"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3A8oki64jA9ualgB0adAP_:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3A8oki64jA9ualgB0adAP_:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="30Vi1xXgzEtA72FJfoLgwc"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>0LHXUGtOLEzvvIxaK5XMvT:2</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyCe"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxBC:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>0LHXUGtOLEzvvIxaK5XMvT:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxBC:2</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyDR"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBr"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxBC:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkb$"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyDP"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBn"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyDM"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkb_"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcN"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyDK"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyDJ"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcM"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcL"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcK"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkbZ"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8N:3</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkbY"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8N:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8N:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcF"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyDB"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcD"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcC"/>
+ <Component IfcGuid="13osNZG6b1HvGnEwG5IBDr"/>
+ <Component IfcGuid="3W4DSy3pb33QWyGgzgo0pw"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkc8"/>
+ <Component IfcGuid="0E1Yt2xX98svHrdrMFg9cE"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkc7"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFklm:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkc6"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkc5"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkc4"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkc2"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8X:6</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="30Vi1xXgzEtA72FJfoLgxk"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8X:5</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2OyfaLLJzADAvG7yl7qlin:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFB:6</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkc1"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFB:5</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkc0"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8X:4</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFB:4</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8X:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8X:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFB:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFB:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8X:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFkeD:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDO:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFB:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFklt:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="2PzCZPHLj8bQL_hp3fERU1"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyD6:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1s$t1FRQf40wjxOyV1OVTV"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke7:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3O20COa6r5ARPcw$4R2hLL:6</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3O20COa6r5ARPcw$4R2hLL:5</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3O20COa6r5ARPcw$4R2hLL:4</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3O20COa6r5ARPcw$4R2hLL:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3O20COa6r5ARPcw$4R2hLL:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3O20COa6r5ARPcw$4R2hLL:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDu:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFz:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFz:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFz:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="13osNZG6b1HvGnEwG5IBE9"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2_iFPglbn9n95QhTwCm8Uf:6</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1pc0TFRcjAywrRV3HgpmMS"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VCU:6</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2_iFPglbn9n95QhTwCm8Uf:5</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2_iFPglbn9n95QhTwCm8Uf:4</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VCU:5</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>35PsNi3Wn5T9b3JmL3M$r6:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2_iFPglbn9n95QhTwCm8Uf:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VCU:4</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>35PsNi3Wn5T9b3JmL3M$r6:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1pr3F0CEzCRfD1Ghu5snws:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2_iFPglbn9n95QhTwCm8Uf:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VCU:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>35PsNi3Wn5T9b3JmL3M$r6:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1pr3F0CEzCRfD1Ghu5snws:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2_iFPglbn9n95QhTwCm8Uf:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VCU:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VCU:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="0wh07UsgP8mf3ADo8LWq7U"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxDj:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDN:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="2VwVShDiz0gAl$BsweUrbX"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxDj:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxDj:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="0wh07UsgP8mf3ADo8LWq6X"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyAe:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFkeD:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="3LnOhZYmz8UQwRTZK9roX$"/>
+ <Component IfcGuid="3W4DSy3pb33QWyGgzgo0mc"/>
+ <Component IfcGuid="2MXBDcWRP02P5tfnBdrHNU"/>
+ <Component IfcGuid="2MXBDcWRP02P5tfnBdrHNT"/>
+ <Component IfcGuid="3W4DSy3pb33QWyGgzgo0o9"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDd:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox9a:3</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="3W4DSy3pb33QWyGgzgo0mW"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox9a:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox9a:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyB2:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="2MXBDcWRP02P5tfnBdrHNJ"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDI:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFklp:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyAh:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke9:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke7:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="3bII83hyD6Yu$Mpez2jNcv"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyBH:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDW:6</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDW:5</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDI:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDW:4</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDW:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDW:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDW:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFklt:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1qQCUVUprErw_MLQ7DcWOJ"/>
+ <Component IfcGuid="1qQCUVUprErw_MLQ7DcWOI"/>
+ <Component IfcGuid="1qQCUVUprErw_MLQ7DcWVj"/>
+ <Component IfcGuid="1qQCUVUprErw_MLQ7DcWVi"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke4:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyCf:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>00AYtzdHzFjgLXn8I7Lvlv:4</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>00AYtzdHzFjgLXn8I7Lvlv:3</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1qQCUVUprErw_MLQ7DcWO6"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke6:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>00AYtzdHzFjgLXn8I7Lvlv:2</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1qQCUVUprErw_MLQ7DcWO5"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>00AYtzdHzFjgLXn8I7Lvlv:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1qQCUVUprErw_MLQ7DcWO4"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke9:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyD6:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="2UWgTxbmTEourPAlYFxD8x"/>
+ <Component IfcGuid="2UWgTxbmTEourPAlYFxD8v"/>
+ <Component IfcGuid="2UWgTxbmTEourPAlYFxD8u"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke2:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1mLIVAU39AxPo7CJmxmiBM"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyBH:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1gOilIRmfEGwb7$SzUoanJ"/>
+ <Component IfcGuid="2OyfaLLJzADAvG7yl7qlqI"/>
+ <Component IfcGuid="2OyfaLLJzADAvG7yl7qlnw"/>
+ <Component IfcGuid="0e0$1G54f40AFFxJYqAOJk"/>
+ <Component IfcGuid="2OyfaLLJzADAvG7yl7qlnr"/>
+ <Component IfcGuid="2UWgTxbmTEourPAlYFxD8d"/>
+ <Component IfcGuid="0e0$1G54f40AFFxJYqAOJi"/>
+ <Component IfcGuid="2UWgTxbmTEourPAlYFxD8c"/>
+ <Component IfcGuid="2UWgTxbmTEourPAlYFxD8a"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyAe:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyBM:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1qQCUVUprErw_MLQ7DcWOz"/>
+ <Component IfcGuid="1nQPsl2Nv5Uvj6quEKe7LN"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke0:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFkeE:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8E:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8E:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotox8E:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDd:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFkeE:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke8:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>0JiPGvmKnAA8H3WfmNhdFL:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>0JiPGvmKnAA8H3WfmNhdFL:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>0JiPGvmKnAA8H3WfmNhdFL:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1qQCUVUprErw_MLQ7DcWO_"/>
+ <Component IfcGuid="1qQCUVUprErw_MLQ7DcWQN"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxF4:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDv:6</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3kWHShq91BWObWPxtxrv73:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxF4:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDv:5</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3kWHShq91BWObWPxtxrv73:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxF4:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDv:4</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDv:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDv:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3jjsI2yer7OAJzD6Gt8VDv:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>0zsqKw7957Bh4NNjGz39d7:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3A8oki64jA9ualgB0adARq:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3A8oki64jA9ualgB0adARq:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>0zsqKw7957Bh4NNjGz39d7:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3Jd6c6Xyv8jPZHLSAu1suB:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3Jd6c6Xyv8jPZHLSAu1suB:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxEu:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>35PsNi3Wn5T9b3JmL3M$sj:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxEu:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFklp:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>35PsNi3Wn5T9b3JmL3M$sj:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxEu:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1qQCUVUprErw_MLQ7DcWPL"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>35PsNi3Wn5T9b3JmL3M$sj:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="2OyfaLLJzADAvG7yl7qln3"/>
+ <Component IfcGuid="2OyfaLLJzADAvG7yl7qln0"/>
+ <Component IfcGuid="0mQ6Us0RbAEwcMtmD0TDm6"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDN:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="2OyfaLLJzADAvG7yl7qlm1"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFkeB:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke1:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFo:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFo:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxFo:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyBN:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2tMWSC$vn3yADWpFDl11xN:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2tMWSC$vn3yADWpFDl11xN:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1pc0TFRcjAywrRV3HgppMl"/>
+ <Component IfcGuid="1pc0TFRcjAywrRV3HgppMh"/>
+ <Component IfcGuid="1pc0TFRcjAywrRV3HgppMf"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyBN:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3mve$qCz5DivbLR040VjHC:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3mve$qCz5DivbLR040VjHC:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3kWHShq91BWObWPxtxrvCF:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3kWHShq91BWObWPxtxrvCF:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjh"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjg"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkiv"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjf"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke6:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyCf:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkja"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxE$:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxE$:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>3_kzkQzI1FP9RTDZotoxE$:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke2:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke4:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFklm:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1pc0TFRcjAywrRV3HgpmMT:4</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1pc0TFRcjAywrRV3HgpmMT:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1pc0TFRcjAywrRV3HgpmMT:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyAI:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyB9:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1pc0TFRcjAywrRV3HgpmMT:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDO:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2UWgTxbmTEourPAlYFxD8b:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke0:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkj7"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhV"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkj6"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhU"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhT"/>
+ <Component IfcGuid="0zsqKw7957Bh4NNjGz39d0"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhS"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkj3"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkj2"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhR"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhQ"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkj1"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkj0"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhP"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhO"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhM"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhL"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke1:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhK"/>
+ <Component IfcGuid="1gOilIRmfEGwb7$SzUohOS"/>
+ <Component IfcGuid="1azD0$4TTC1hgVDVWx5ITK"/>
+ <Component IfcGuid="1azD0$4TTC1hgVDVWx5ITI"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1pc0TFRcjAywrRV3Hgpp6X:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1pc0TFRcjAywrRV3Hgpp6X:1</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFkeB:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1nQPsl2Nv5Uvj6quEKe70E:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1nQPsl2Nv5Uvj6quEKe70E:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjX"/>
+ <Component IfcGuid="0LHXUGtOLEzvvIxaK5XMWV"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjW"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>33TLO5RDbAtR5xmdzghsWy:2</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjT"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>33TLO5RDbAtR5xmdzghsWy:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjS"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjR"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyAn"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyAl"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjN"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyAk"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjM"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjL"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyAi"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyD9"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjK"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyD8"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjJ"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyB9:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyAI:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkhi"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjI"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBV"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyAf"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjH"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkjG"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBR"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyAb"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyD2"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBQ"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBO"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBL"/>
+ <Component IfcGuid="2Cc$KVYf55mfjggfx$IIb9"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBK"/>
+ <Component IfcGuid="2Cc$KVYf55mfjggfx$IIb7"/>
+ <Component IfcGuid="2Cc$KVYf55mfjggfx$IIb6"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkbz"/>
+ <Component IfcGuid="0LHXUGtOLEzvvIxaK5XMW8"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBG"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkby"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBF"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkch"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBE"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDT:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBC"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcf"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkbu"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkbt"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyBA"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkca"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkbp"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkbo"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkbn"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkbm"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyAh:color_rgb_0-0-0</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1azD0$4TTC1hgVDVWx5ITJ:2</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyB3"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1azD0$4TTC1hgVDVWx5ITJ:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkdD"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyB0"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcR"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcQ"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcP"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyB2:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDu:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyBM:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkh2"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkh1"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>39_n9ZMhPAQBWcKbXoFke8:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2MXBDcWRP02P5tfnBdrHD_:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2MXBDcWRP02P5tfnBdrHD_:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyDt"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcv"/>
+ <Component IfcGuid="39_n9ZMhPAQBWcKbXoFkcu"/>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyDq"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>1Uhsb9oeb77OoM87lbwyDT:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyDk"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>00AYtzdHzFjgLXn8I7LvYI:4</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>00AYtzdHzFjgLXn8I7LvYI:3</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>00AYtzdHzFjgLXn8I7LvYI:2</AuthoringToolId>
+ </Component>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>00AYtzdHzFjgLXn8I7LvYI:1</AuthoringToolId>
+ </Component>
+ <Component IfcGuid="1Uhsb9oeb77OoM87lbwyDf"/>
+ <Component>
+ <OriginatingSystem>DESITE</OriginatingSystem>
+ <AuthoringToolId>2UWgTxbmTEourPAlYFxD8b:color_rgb_193-193-193</AuthoringToolId>
+ </Component>
+ </Selection>
+ </Components>
+ <PerspectiveCamera>
+ <CameraViewPoint>
+ <X>58.1038</X>
+ <Y>16.5493</Y>
+ <Z>24.7329</Z>
+ </CameraViewPoint>
+ <CameraDirection>
+ <X>1.28974</X>
+ <Y>1.2105</Y>
+ <Z>-0.569962</Z>
+ </CameraDirection>
+ <CameraUpVector>
+ <X>0.223629</X>
+ <Y>0.209889</Y>
+ <Z>0.951807</Z>
+ </CameraUpVector>
+ <FieldOfView>60</FieldOfView>
+ </PerspectiveCamera>
+</VisualizationInfo>
\ No newline at end of file
diff --git a/modules/bcf/spec/lib/open_project/bcf/bcf_json/viewpoint_mapper_shared_examples.rb b/modules/bcf/spec/lib/open_project/bcf/bcf_json/viewpoint_mapper_shared_examples.rb
new file mode 100644
index 00000000000..f0ddc575e2e
--- /dev/null
+++ b/modules/bcf/spec/lib/open_project/bcf/bcf_json/viewpoint_mapper_shared_examples.rb
@@ -0,0 +1,162 @@
+#-- copyright
+# OpenProject is a project management system.
+# Copyright (C) 2012-2019 the OpenProject Foundation (OPF)
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 3.
+#
+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+# Copyright (C) 2006-2017 Jean-Philippe Lang
+# Copyright (C) 2010-2013 the ChiliProject Team
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# See docs/COPYRIGHT.rdoc for more details.
+#++
+
+require 'spec_helper'
+
+shared_examples 'viewpoint keys' do
+ let(:expected) { %w[guid components orthogonal_camera perspective_camera lines clipping_planes] }
+
+ it 'has only allowed keys' do
+ expect(subject.keys - expected).to be_empty
+ end
+
+ it 'always has the guid set to the viewpoint' do
+ expect(subject.keys).to include 'guid'
+ expect(subject['guid']).to eq(viewpoint.uuid)
+ end
+
+ it 'always has the perspective_camera OR orthogonal camera set' do
+ expect(subject.keys)
+ .to include('perspective_camera')
+ .or include('orthogonal_camera')
+ end
+end
+
+shared_examples 'has camera' do |camera_type|
+ it 'has a camera object' do
+ # camera xyz floats
+ expect(subject.dig(camera_type)).to be_kind_of(Hash)
+ expect(subject.dig(camera_type, 'field_of_view')).to be_kind_of(Float)
+
+ %w[camera_view_point camera_direction camera_up_vector].each do |key|
+ camera_vp = subject.dig(camera_type, key)
+ expect(camera_vp).to be_kind_of(Hash)
+ expect(camera_vp.keys).to contain_exactly 'x', 'y', 'z'
+ expect(camera_vp.values).to all(be_kind_of(Float))
+ end
+ end
+end
+
+shared_examples 'has lines' do
+ it 'has a lines entry' do
+ lines = subject['lines']
+ expect(lines).to be_kind_of(Array)
+
+ lines.each do |line|
+ expect(line).to be_kind_of(Hash)
+ expect(line.keys).to contain_exactly 'start_point', 'end_point'
+ expect(line['start_point'].keys).to contain_exactly 'x', 'y', 'z'
+ expect(line['start_point'].values).to all(be_kind_of(Float))
+ expect(line['end_point'].keys).to contain_exactly 'x', 'y', 'z'
+ expect(line['end_point'].values).to all(be_kind_of(Float))
+ end
+ end
+end
+
+shared_examples 'has clipping planes' do
+ it 'has a lines entry' do
+ clipping_planes = subject['clipping_planes']
+ expect(clipping_planes).to be_kind_of(Array)
+
+ clipping_planes.each do |plane|
+ expect(plane).to be_kind_of(Hash)
+ expect(plane.keys).to contain_exactly 'location', 'direction'
+ expect(plane['location'].keys).to contain_exactly 'x', 'y', 'z'
+ expect(plane['location'].values).to all(be_kind_of(Float))
+ expect(plane['direction'].keys).to contain_exactly 'x', 'y', 'z'
+ expect(plane['direction'].values).to all(be_kind_of(Float))
+ end
+ end
+end
+
+shared_examples 'has components selection' do
+ it 'has components selections' do
+ selection = subject.dig('components', 'selection')
+ expect(selection).to be_kind_of(Array)
+
+ selection.each do |item|
+ expect(item).to be_kind_of(Hash)
+ expect(item.keys).to include 'ifc_guid'
+
+ # Has only allowed keys
+ expect(item.keys - %w[ifc_guid originating_system authoring_tool_id]).to be_empty
+ end
+ end
+end
+
+shared_examples 'has components coloring' do
+ it 'has components coloring' do
+ coloring = subject.dig('components', 'coloring')
+ expect(coloring).to be_kind_of(Array)
+
+ coloring.each do |item|
+ expect(item).to be_kind_of(Hash)
+ expect(item.keys).to include 'color', 'components'
+ expect(item['color']).to match /\A#[a-f0-9]{6}\Z/i
+ expect(item['components']).to be_kind_of(Array)
+
+ item['components'].each do |component|
+ expect(component).to be_kind_of(Hash)
+ expect(component.keys).to include 'ifc_guid'
+ end
+ end
+ end
+end
+
+shared_examples 'has components visibility' do
+ it 'has components visibility' do
+ visibility = subject.dig('components', 'visibility')
+ expect(visibility).to be_kind_of(Hash)
+ expect(visibility.keys - %w[default_visibility exceptions view_setup_hints]).to be_empty
+
+ expect(visibility['default_visibility']).to be_boolean
+ Array(visibility['exceptions']).each do |item|
+ expect(item).to be_kind_of(Hash)
+ expect(item.keys).to include 'ifc_guid'
+ end
+
+ hints = visibility['view_setup_hints']
+ expect(hints).to be_kind_of(Hash)
+ expect(hints.keys).to contain_exactly 'spaces_visible', 'space_boundaries_visible', 'openings_visible'
+ expect(hints.values).to all(be_boolean)
+ end
+end
+
+shared_examples 'matches the JSON counterpart' do
+ it 'matches the JSON viewpoint counterpart' do
+ path = OpenProject::Bcf::Engine.root.join("spec/fixtures/viewpoints/#{viewpoint.viewpoint_name}.json")
+ raise "Expected #{path} to be readable for JSON comparsion" unless path.readable?
+
+ json = path.read
+
+ # Replace the static GUID with the one from this viewpoint
+ json.gsub! '{{UUID}}', viewpoint.uuid
+
+ expect(subject.to_json).to be_json_eql(json)
+ end
+end
diff --git a/modules/bcf/spec/lib/open_project/bcf/bcf_json/viewpoint_mapper_spec.rb b/modules/bcf/spec/lib/open_project/bcf/bcf_json/viewpoint_mapper_spec.rb
new file mode 100644
index 00000000000..e792ed0332d
--- /dev/null
+++ b/modules/bcf/spec/lib/open_project/bcf/bcf_json/viewpoint_mapper_spec.rb
@@ -0,0 +1,74 @@
+#-- copyright
+# OpenProject is a project management system.
+# Copyright (C) 2012-2019 the OpenProject Foundation (OPF)
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 3.
+#
+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+# Copyright (C) 2006-2017 Jean-Philippe Lang
+# Copyright (C) 2010-2013 the ChiliProject Team
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# See docs/COPYRIGHT.rdoc for more details.
+#++
+
+require 'spec_helper'
+require_relative './viewpoint_mapper_shared_examples.rb'
+
+describe OpenProject::Bcf::BcfJson::ViewpointMapper do
+ let(:instance) { described_class.new viewpoint }
+ subject { instance.result }
+
+ describe 'with minimal example' do
+ let_it_be(:viewpoint) do
+ FactoryBot.build_stubbed :bcf_viewpoint, viewpoint_name: 'minimal.bcfv'
+ end
+
+ it_behaves_like 'viewpoint keys'
+ it_behaves_like 'has camera', 'orthogonal_camera'
+
+ it_behaves_like 'matches the JSON counterpart'
+ end
+
+ describe 'with full viewpoint' do
+ let_it_be(:viewpoint) do
+ FactoryBot.build_stubbed :bcf_viewpoint, viewpoint_name: 'full_viewpoint.bcfv'
+ end
+
+ it_behaves_like 'viewpoint keys'
+ it_behaves_like 'has camera', 'perspective_camera'
+ it_behaves_like 'has lines'
+ it_behaves_like 'has clipping planes'
+ it_behaves_like 'has components selection'
+ it_behaves_like 'has components coloring'
+ it_behaves_like 'has components visibility'
+
+ it_behaves_like 'matches the JSON counterpart'
+ end
+
+ describe 'with real-world neuhaus_sc_1 example' do
+ let_it_be(:viewpoint) do
+ FactoryBot.build_stubbed :bcf_viewpoint, viewpoint_name: 'neubau_sc_1.bcfv'
+ end
+
+ it_behaves_like 'viewpoint keys'
+ it_behaves_like 'has camera', 'perspective_camera'
+ it_behaves_like 'has components selection'
+
+ it_behaves_like 'matches the JSON counterpart'
+ end
+end
diff --git a/spec/support/matchers/be_boolean.rb b/spec/support/matchers/be_boolean.rb
new file mode 100644
index 00000000000..6074c11b7ff
--- /dev/null
+++ b/spec/support/matchers/be_boolean.rb
@@ -0,0 +1,5 @@
+RSpec::Matchers.define :be_boolean do
+ match do |value|
+ [true, false].include? value
+ end
+end
\ No newline at end of file