From ed3b3ba2f013e1eeda6674da2f3e98a8df915201 Mon Sep 17 00:00:00 2001 From: Georg Dangl Date: Mon, 9 Oct 2023 12:19:39 +0200 Subject: [PATCH] Restore original formatting and update optimization rules --- Documentation/README.md | 359 +++++++++++++++++++--------------------- 1 file changed, 171 insertions(+), 188 deletions(-) diff --git a/Documentation/README.md b/Documentation/README.md index 718ae2a..4b31b71 100644 --- a/Documentation/README.md +++ b/Documentation/README.md @@ -1,6 +1,5 @@ # BIM Collaboration Format v3.0 Technical Documentation - -![BCF](https://raw.githubusercontent.com/buildingSMART/BCF-XML/master/Icons/BCFicon128.png 'The BCF logo') +![BCF](https://raw.githubusercontent.com/buildingSMART/BCF-XML/master/Icons/BCFicon128.png "The BCF logo") ### Terms and Abbreviations @@ -9,31 +8,30 @@ Globally Unique Identifier: http://en.wikipedia.org/wiki/Globally_Unique_Identif IfcGuid Globally Unique Identifier in the IFC data. This format is used only when referring to objects in IFC datasets. -| | | -| ---------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| BCF | BIM Collaboration Format | -| BCF file | File in BIM Collaboration Format | -| Topic | One topic, such as a problem in the design, described in BCF file | -| GUID | Globally Unique Identifier: http://en.wikipedia.org/wiki/Globally_Unique_Identifier | + +| | | +| ------------- |:-------------| +| BCF | BIM Collaboration Format | +| BCF file | File in BIM Collaboration Format | +| Topic | One topic, such as a problem in the design, described in BCF file | +| GUID |Globally Unique Identifier: http://en.wikipedia.org/wiki/Globally_Unique_Identifier | | ServerAssignedId | A server-controlled, user-friendly and project-unique issue identifier. More details in [BCF-API](https://github.com/buildingSMART/BCF-API/tree/release_2_2#429-topic-identifiers) | ### Background - -- This document describes the BCF format that is used to exchange topics, such as, issues, scenes, etc. between different BIM software. +* This document describes the BCF format that is used to exchange topics, such as, issues, scenes, etc. between different BIM software. ### BCF file structure - A BCF file is a zip containing one folder for each topic with its file extension "bcfzip" for BCFv1.0 and BCFv2.0. The file extension "bcf" is introduced since BCFv2.1. The root of the BCF zip contains the following files. -- extensions.xml - - An XML file defining the extensions of a project. The schema for this file is extensions.xsd. -- project.bcfp (optional) - - An XML file defining the details of a project. The schema for this file is project.xsd. -- documents.xml (optional) - - An XML file defining the documents in a project. The schema for this file is documents.xsd. -- bcf.version - - An XML file following the version.xsd schema with information of the BCF schema used. The file content should be identical to the contents of [bcf.version](bcf.version 'bcf.version') +* extensions.xml + - An XML file defining the extensions of a project. The schema for this file is extensions.xsd. +* project.bcfp (optional) + - An XML file defining the details of a project. The schema for this file is project.xsd. +* documents.xml (optional) + - An XML file defining the documents in a project. The schema for this file is documents.xsd. +* bcf.version + * An XML file following the version.xsd schema with information of the BCF schema used. The file content should be identical to the contents of [bcf.version](bcf.version "bcf.version") It is possible to store additional files in the BCF container as documents. The documents must be located in a folder called `Documents` in the root directory, and must be referenced by the `documents.xml` file. @@ -47,22 +45,22 @@ When a property or an attribute is required, it must not be an empty value. For The folder name is the GUID of the topic. This GUID is in the UUID form. The GUID must be all-lowercase. The folder contains the following file: -- markup.bcf - - An XML file following the markup.xsd schema that is described below. +* markup.bcf + * An XML file following the markup.xsd schema that is described below. Additionally the folder can contain other files: -- Viewpoint files - - An XML file conforming to the visinfo.xsd schema that is described below. - - File names should end with the `.bcfv` extension and match the value of one of the [`Viewpoint` elements](https://github.com/BuildingSMART/BCF-XML/tree/release_3_0/Documentation#viewpoints). -- Snapshot files - - Both PNG and JPEG snapshots are allowed. - - The longest dimension of should not exceed 1500 px, length or width. - - File names should match the value of one of the [`Snapshot` elements](https://github.com/BuildingSMART/BCF-XML/tree/release_3_0/Documentation#viewpoints). -- Bitmaps - - See https://github.com/BuildingSMART/BCF-XML/tree/release_3_0/Documentation#bitmap-optional. +* Viewpoint files + * An XML file conforming to the visinfo.xsd schema that is described below. + * File names should end with the `.bcfv` extension and match the value of one of the [`Viewpoint` elements](https://github.com/BuildingSMART/BCF-XML/tree/release_3_0/Documentation#viewpoints). +* Snapshot files + * Both PNG and JPEG snapshots are allowed. + * The longest dimension of should not exceed 1500 px, length or width. + * File names should match the value of one of the [`Snapshot` elements](https://github.com/BuildingSMART/BCF-XML/tree/release_3_0/Documentation#viewpoints). +* Bitmaps + * See https://github.com/BuildingSMART/BCF-XML/tree/release_3_0/Documentation#bitmap-optional. -_Note: The elements in the XML files must appear in the order given in the schemas and described below._ +*Note: The elements in the XML files must appear in the order given in the schemas and described below.* ### DateTime Format @@ -81,23 +79,25 @@ Numeric values in this specification are all in fixed units - meters for length The project file contains reference information about the project the topics belong to. -| Attribute | Optional | Description | -| :-------- | :------- | :----------------------: | -| ProjectId | No | ProjectId of the project | -In addition it has the following nodes: -| Element | Optional | Description | -| :------ | :------- | :------------------- | -| Name | Yes | Name of the project. | + Attribute | Optional | Description | +:-----------|:------------|:------------: + ProjectId | No | ProjectId of the project + + In addition it has the following nodes: -## Markup (.bcf) file + Element | Optional | Description | +:-----------|:------------|:------------ +Name | Yes | Name of the project. + + +## Markup (.bcf) file The markup file contains textual information about the topic. ### Header - -Header node contains information about the IFC files relevant to this topic. +Header node contains information about the IFC files relevant to this topic. The "files" should be used to match which models to be opened when displaying the topic viewpoints. @@ -106,31 +106,30 @@ Therefore the software importing the BCF file should give the user a possibility Each File node has the following attributes: -| Attribute | Optional | Description | -| :------------------------- | :------- | :---------------------------------------------------------------------------------------------------------- | -| IfcProject | Yes | IfcGuid Reference to the project to which this topic is related in the IFC file | -| IfcSpatialStructureElement | Yes | IfcGuid Reference to the spatial structure element, e.g. IfcBuildingStorey, to which this topic is related. | -| IsExternal | Yes | Is the IFC file external or within the bcfzip. (Default = true). | + Attribute | Optional | Description | +:-----------|:------------|:------------ + IfcProject | Yes | IfcGuid Reference to the project to which this topic is related in the IFC file +IfcSpatialStructureElement | Yes | IfcGuid Reference to the spatial structure element, e.g. IfcBuildingStorey, to which this topic is related. +IsExternal | Yes | Is the IFC file external or within the bcfzip. (Default = true). In addition File has the following nodes: -| Attribute | Optional | Description | -| :-------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Filename | Yes | The BIM file related to this topic. For IFC files this is the first item in the FILE_NAME entry in the IFC file's [header](https://standards.buildingsmart.org/documents/Implementation/ImplementationGuide_IFCHeaderData_Version_1.0.2.pdf). | -| Date | Yes | Date of the BIM file. For IFC files this is the second entry of the FILE_NAME entry in the IFC file's [header](https://standards.buildingsmart.org/documents/Implementation/ImplementationGuide_IFCHeaderData_Version_1.0.2.pdf). When the timestamp given in the header does not provide timezone, it is interpreted as UTC. | -| Reference | Yes | URI to IfcFile.
IsExternal=false “..\example.ifc“ (within bcfzip)
IsExternal=true “https://.../example.ifc“ | -| Id | Yes | The id of the file. This is internal to the topic, and can be used by viewpoints to reference a subset of the files that should be loaded | + Attribute | Optional | Description | +:-----------|:------------|:------------ +Filename | Yes | The BIM file related to this topic. For IFC files this is the first item in the FILE_NAME entry in the IFC file's [header](https://standards.buildingsmart.org/documents/Implementation/ImplementationGuide_IFCHeaderData_Version_1.0.2.pdf). +Date | Yes | Date of the BIM file. For IFC files this is the second entry of the FILE_NAME entry in the IFC file's [header](https://standards.buildingsmart.org/documents/Implementation/ImplementationGuide_IFCHeaderData_Version_1.0.2.pdf). When the timestamp given in the header does not provide timezone, it is interpreted as UTC. +Reference | Yes | URI to IfcFile.
IsExternal=false “..\example.ifc“ (within bcfzip)
IsExternal=true “https://.../example.ifc“ +Id | Yes | The id of the file. This is internal to the topic, and can be used by viewpoints to reference a subset of the files that should be loaded ### Topic - Topic node contains reference information of the topic. It has one required attribute, which is the topic GUID (`Guid`). -| Attribute | Optional | Description | -| :--------------- | :------- | :-------------------------------------------------------------------------------------------------------------------------------- | -| Guid | No | Guid of the topic, in lowercase | -| ServerAssignedId | Yes | A server controlled, user friendly and project-unique issue identifier. Clients provided values will be disregarded by the server | -| TopicType | No | Type of the topic (Predefined list in “extensions.xml”) | -| TopicStatus | No | Type of the topic (Predefined list in “extensions.xml”) | + Attribute | Optional | Description | +:-----------|:------------|:------------ +Guid | No | Guid of the topic, in lowercase +ServerAssignedId | Yes | A server controlled, user friendly and project-unique issue identifier. Clients provided values will be disregarded by the server | +TopicType | No | Type of the topic (Predefined list in “extensions.xml”) +TopicStatus | No | Type of the topic (Predefined list in “extensions.xml”) **Server Assigned ID** @@ -140,7 +139,6 @@ When exported to XML this information may be critical to the understanding of to However, since the BCF-XML specification can't distinguish between server-side BCF and client-side BCF, it was decided to mark the field as optional in the XSD schema. Clients should: - - Display the `ServerAssignedId` and enable searching topics by its content - Prevent setting the `ServerAssignedId` when creating a new topic - Prevent changes to the `ServerAssignedId` when editing an existing topic @@ -150,130 +148,121 @@ Clients should: In addition, a topic has the following nodes: -| Element | Optional | Description | -| :------------- | :------- | :------------------------------------------------------------------------------------------------------------------- | -| ReferenceLink | Yes | List of references to the topic, for example, a work request management system or an URI to a model. | -| Title | No | Title of the topic. | -| Priority | Yes | Topic priority (Predefined list in “extensions.xml”). | -| Index | Yes | Number to maintain the order of the topics. **This property is deprecated and will be removed in a future release.** | -| Labels | Yes | Tags for grouping Topics (Predefined list in “extensions.xml”). | -| CreationDate | No | Date when the topic was created. | -| CreationAuthor | No | User who created the topic. | -| ModifiedDate | Yes | Date when the topic was last modified. Exists only when Topic has been modified after creation. | -| ModifiedAuthor | Yes | User who modified the topic. Exists only when Topic has been modified after creation. | -| DueDate | Yes | Date until when the topics issue needs to be resolved. | -| AssignedTo | Yes | The user to whom this topic is assigned to. Recommended to be in email format (Predefined list in “extensions.xml”). | -| Description | Yes | Description of the topic. | -| Stage | Yes | Stage this topic is part of (Predefined list in “extensions.xml”). | + Element | Optional | Description | +:-----------|:------------|:------------ +ReferenceLink | Yes | List of references to the topic, for example, a work request management system or an URI to a model. +Title | No | Title of the topic. +Priority | Yes | Topic priority (Predefined list in “extensions.xml”). +Index | Yes | Number to maintain the order of the topics. **This property is deprecated and will be removed in a future release.** +Labels | Yes | Tags for grouping Topics (Predefined list in “extensions.xml”). +CreationDate | No | Date when the topic was created. +CreationAuthor | No | User who created the topic. +ModifiedDate | Yes | Date when the topic was last modified. Exists only when Topic has been modified after creation. +ModifiedAuthor | Yes | User who modified the topic. Exists only when Topic has been modified after creation. +DueDate | Yes | Date until when the topics issue needs to be resolved. +AssignedTo | Yes | The user to whom this topic is assigned to. Recommended to be in email format (Predefined list in “extensions.xml”). +Description | Yes | Description of the topic. +Stage | Yes | Stage this topic is part of (Predefined list in “extensions.xml”). ### BimSnippet (optional) - BimSnippet is an additional file containing information related to one or multiple topics. For example, it can be an IFC file containing provisions for voids. -| Attribute | Optional | Description | -| :---------- | :------- | :----------------------------------------------------------------------- | -| SnippetType | No | Type of the Snippet (Predefined list in “extensions.xml”) | -| IsExternal | Yes | Is the BimSnippet external or within the bcfzip.
(Default = false). | + Attribute | Optional | Description | +:-----------|:------------|:------------ +SnippetType | No | Type of the Snippet (Predefined list in “extensions.xml”) +IsExternal | Yes | Is the BimSnippet external or within the bcfzip.
(Default = false). -| Element | Optional | Description | -| :-------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------- | -| Reference | No | URI to BimSnippet.
IsExternal=false “..\snippetExample.ifc“ (within bcfzip)
IsExternal=true “https://.../snippetExample.ifc“ | -| ReferenceSchema | No | URI to BimSnippetSchema (always external) | + Element | Optional | Description | +:-----------|:------------|:------------ +Reference | No | URI to BimSnippet.
IsExternal=false “..\snippetExample.ifc“ (within bcfzip)
IsExternal=true “https://.../snippetExample.ifc“ +ReferenceSchema | No | URI to BimSnippetSchema (always external) ### DocumentReferences (optional) - DocumentReferences provides a means to associate documents with topics. The references may point to files within the BCF or to external locations. -| Attribute | Optional | Description | -| :----------- | :----------------------------------------- | :---------------------------------------------------- | -| Guid | No | Guid attribute for identifying the reference uniquely | -| DocumentGuid | No, mutually exclusive with `Url` | Guid of the referenced document. | -| Url | No, mutually exclusive with `DocumentGuid` | Url of an external document. | -| Description | Yes | Human readable description of the document reference | +Attribute | Optional | Description | +:-----------|:------------|:------------ +Guid | No | Guid attribute for identifying the reference uniquely +DocumentGuid | No, mutually exclusive with `Url` | Guid of the referenced document. +Url | No, mutually exclusive with `DocumentGuid` | Url of an external document. +Description | Yes | Human readable description of the document reference ### RelatedTopic (optional) - Relation between topics (Clash -> PfV -> Opening) -| Attribute | Optional | Description | -| :---------------- | :------- | :-------------------------------------- | -| RelatedTopic/GUID | Yes | List of GUIDs of the referenced topics. | +Attribute | Optional | Description | +:-----------|:------------|:------------ +RelatedTopic/GUID | Yes | List of GUIDs of the referenced topics. -### Comment +### Comment The markup file can contain comments related to the topic. Their purpose is to record discussion between different parties related to the topic. Each Comment has a Guid attribute for identifying it uniquely. A comment can reference a viewpoint to support the discussion. At least one of Viewpoint and/or Comment (text) must be provided. In addition, it has the following nodes: -| Element | Optional | Description | -| :------------- | :----------------------- | :---------------------------------------------- | -| Date | No | Date of the comment | -| Author | No | Comment author | -| Comment | Yes, if Viewpoint exists | The comment text, must not be empty if provided | -| Viewpoint | Yes, if Comment exists | Back reference to the viewpoint GUID. | -| ModifiedDate | Yes | The date when comment was modified | -| ModifiedAuthor | Yes | The author who modified the comment | +Element | Optional | Description | +:-----------|:------------|:------------ +Date | No | Date of the comment +Author |No | Comment author +Comment | Yes, if Viewpoint exists | The comment text, must not be empty if provided +Viewpoint | Yes, if Comment exists | Back reference to the viewpoint GUID. +ModifiedDate | Yes | The date when comment was modified +ModifiedAuthor | Yes | The author who modified the comment ### Viewpoints - The markup file can contain multiple viewpoints related to one or more comments. A viewpoint has also the Guid attribute for identifying it uniquely. In addition, it has the following nodes: -| Element | Optional | Description | -| :-------- | :------- | :------------------------------------- | -| Viewpoint | Yes | Filename of the viewpoint (.bcfv) | -| Snapshot | Yes | Filename of the snapshot (png or jpeg) | -| Index | Yes | Parameter for sorting | +Element | Optional | Description | +:-----------|:------------|:------------ +Viewpoint | Yes | Filename of the viewpoint (.bcfv) +Snapshot | Yes | Filename of the snapshot (png or jpeg) +Index | Yes | Parameter for sorting Viewpoints are immutable, therefore they should never be changed once created. If new comments on a topic require different visualization, new viewpoints should be added. ## Visualization information (.bcfv) file - The visualization information file contains information of components related to the topic, camera settings, and possible markup and clipping information. -### TopicFiles +### TopicFileIds -Parent topic objects specify a list of model files in their `Header.Files` element. These files contain an `Id` attribute, which are used to reference a subset of all the topic files for a specific viewpoint. To make viewpoints immutable, e.g. in the case of later added topic files, each viewpoint is required to list all their file references. Only those files referenced In a viewpoints `TopicFiles` should be loaded when visualizing the viewpoint. +Parent topic objects specify a list of model files in their `Header.Files` element. These files contain an `Id` attribute, which are used to reference a subset of all the topic files for a specific viewpoint. To make viewpoints immutable, e.g. in the case of later added topic files, each viewpoint is required to list all their file references. Only those files referenced In a viewpoints `TopicFileIds` should be loaded when visualizing the viewpoint. ### Components The `Components` element contains the following properties. - -- `Selection` to list components of interest -- `Visibility` to describe which component is visible and which isn't -- `Coloring` to convey coloring options for displaying components +* `Selection` to list components of interest +* `Visibility` to describe which component is visible and which isn't +* `Coloring` to convey coloring options for displaying components #### Selection - The `Selection` element lists all components that should be selected (highlighted) when displaying a viewpoint. **Optimization Rules** BCF is suitable for selecting a few components. A huge list of selected components causes poor performance. All clients should follow this rule: -- If the size of the selected components is huge (over 1000 components), alert the user and ask them to reduce the number of selected components. -- Provide help to the user to only select those models that are required to understand the topic, limiting the model files that need to be loaded to visualize a single viewpoint by specifying a small list of files in the viewpoints `TopicFiles` element. +* If the size of the selected components is huge (over 1000 components), alert the user and ask them to reduce the number of selected components. +* Provide help to the user to only select those models that are required to understand the topic, limiting the model files that need to be loaded to visualize a single viewpoint by specifying a small list of files in the viewpoints `TopicFileIds` element. #### Visibility - The `Visibility` element decides which objects are visible and which are hidden. -| Element/Attribute | Optional | Description | -| :---------------- | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| DefaultVisibility | Yes | Boolean. Defaults to `false`
| -| Exceptions | Yes | A list of components to hide when `DefaultVisibility=true` or to show when `DefaultVisibility=false` | -| ViewSetupHints | Yes | Boolean flags to allow fine control over the visibility of [spaces](https://standards.buildingsmart.org/IFC/RELEASE/IFC4_1/FINAL/HTML/schema/ifcproductextension/lexical/ifcspace.htm), [space boundaries](https://standards.buildingsmart.org/IFC/RELEASE/IFC4_1/FINAL/HTML/schema/ifcproductextension/lexical/ifcrelspaceboundary.htm) and [openings](https://standards.buildingsmart.org/IFC/RELEASE/IFC4_1/FINAL/HTML/schema/ifcproductextension/lexical/ifcopeningelement.htm). A typical use of these flags is when `DefaultVisibility=true` but spaces, spaces boundaries and openings should remain hidden.
All flags default to `false`
| +Element/Attribute | Optional | Description | +:-----------|:------------|:------------ +DefaultVisibility | Yes | Boolean. Defaults to `false`
+Exceptions | Yes | A list of components to hide when `DefaultVisibility=true` or to show when `DefaultVisibility=false` +ViewSetupHints | Yes | Boolean flags to allow fine control over the visibility of [spaces](https://standards.buildingsmart.org/IFC/RELEASE/IFC4_1/FINAL/HTML/schema/ifcproductextension/lexical/ifcspace.htm), [space boundaries](https://standards.buildingsmart.org/IFC/RELEASE/IFC4_1/FINAL/HTML/schema/ifcproductextension/lexical/ifcrelspaceboundary.htm) and [openings](https://standards.buildingsmart.org/IFC/RELEASE/IFC4_1/FINAL/HTML/schema/ifcproductextension/lexical/ifcopeningelement.htm). A typical use of these flags is when `DefaultVisibility=true` but spaces, spaces boundaries and openings should remain hidden.
All flags default to `false`
**Optimization Rules** BCF is suitable for hiding/showing a few components. A huge list of hidden/shown components causes poor performance. When encoding a viewpoint follow these rules: -- If the list of hidden components is smaller than the list of visible components: set `DefaultVisibility` to true and put the hidden components in exceptions. -- If the list of visible components is smaller or equals the list of hidden components: set default_visibility to false and put the visible components in exceptions. -- If the size of exceptions is huge (over 1000 components), alert the user and ask them to alter the visibility to allow efficient encoding. -- For spaces, space boundaries and openings follow the following guideline (using spaces as an example): When a viewpoint has no visible spaces, set the value of `SpacesVisible` to false. If there are any spaces visible in the viewpoint, set the value to be the same as `DefaultVisibility` and follow the optimization rules above while treating spaces like any other component. +* If no components from a given model file are loaded, then this file should not be referenced in the `TopicFileIds` of the viewpoint +* If the list of hidden components is smaller than the list of visible components: set `DefaultVisibility` to true and put the hidden components in exceptions. +* If the list of visible components is smaller or equals the list of hidden components: set default_visibility to false and put the visible components in exceptions. +* If the size of exceptions is huge (over 1000 components), alert the user and ask them to alter the visibility to allow efficient encoding. +* For spaces, space boundaries and openings follow the following guideline (using spaces as an example): When a viewpoint has no visible spaces, set the value of `SpacesVisible` to false. If there are any spaces visible in the viewpoint, set the value to be the same as `DefaultVisibility` and follow the optimization rules above while treating spaces like any other component. ##### Applying Visibility - The visibility is applied in following order: - 1. Apply the `DefaultVisibility` 2. Apply the `ViewSetupHints` 3. Apply the `Exceptions` @@ -281,22 +270,23 @@ The visibility is applied in following order: ###### Example Consider the viewpoint provided below. - 1. Applying `DefaultVisibility="false"` hides all objects 2. Applying `SpacesVisible="true"` shows all spaces 3. Applying Exceptions: - > 1. Inverting the Wall visibility makes it visible - > 2. Interting the Space visibility makes it invisible +> 1. Inverting the Wall visibility makes it visible +> 2. Interting the Space visibility makes it invisible In summary, after applying the following viewpoint: - 1. All spaces are visible except one space which is hidden -2. All the other objects are hidden except for one wall which is visible +2. All the other objects are hidden except for one wall which is visible -```xml +``` xml + + + @@ -330,17 +320,18 @@ In summary, after applying the following viewpoint: ``` -#### Coloring +#### Coloring The `Coloring` element allows specifying the color of components. For each color a list of components to be displayed with the that color should be provided. The color is given in ARGB format. Colors are represented as 6 or 8 hexadecimal digits. If 8 digits are present, the first two represent the alpha (transparency) channel. For example, `40E0D0` would be the color Turquoise. [More information about the color format can be found on Wikipedia.](https://en.wikipedia.org/wiki/RGBA_color_space) + **Optimization Rules** BCF is suitable for coloring a few components. A huge list of components causes poor performance. All clients should follow this rule: -- If the size of colored components is huge (over 1000 components), alert the user and ask them to reduce the number of colored components. +* If the size of colored components is huge (over 1000 components), alert the user and ask them to reduce the number of colored components. #### Encoding composite Components in selection, visibility and coloring @@ -351,9 +342,9 @@ When selecting, hiding, showing or coloring decomposed components, such as curta ##### When creating the viewpoint -- If the container element and all its parts have the same color then only the container element should be added to the component list -- If only some parts have the same color, then only those parts should be added to the component list. -- Adding all the parts to the component list is allowed and would result in excluding any parts that will be added in later revisions of the model +* If the container element and all its parts have the same color then only the container element should be added to the component list +* If only some parts have the same color, then only those parts should be added to the component list. +* Adding all the parts to the component list is allowed and would result in excluding any parts that will be added in later revisions of the model ##### When visualizing the viewpoint @@ -363,11 +354,11 @@ The color of a container element should be applied to all its parts. A component has the following attributes: -| Attribute | Optional | Description | -| :---------------- | :---------------------------------- | :---------------------------------------------------------------------- | -| IfcGuid | Yes, if AuthoringToolId is Provided | The IfcGuid of the component | -| OriginatingSystem | Yes | Name of the system in which the component is originated | -| AuthoringToolId | Yes, if IfcGuid is Provided | System specific identifier of the component in the originating BIM tool | +Attribute | Optional | Description | +:-----------|:------------|:------------ +IfcGuid | Yes, if AuthoringToolId is Provided | The IfcGuid of the component +OriginatingSystem | Yes | Name of the system in which the component is originated +AuthoringToolId | Yes, if IfcGuid is Provided | System specific identifier of the component in the originating BIM tool Note that `IfcGuid` must be provided, if possible. The `AuthoringToolId` can be used as a fallback when an `IfcGuid` is not available. @@ -387,25 +378,25 @@ This element describes a viewpoint using an orthogonal projection. It has the following elements: -| Element | Optional | Description | -| :--------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------- | -| CameraViewPoint | No | Camera location | -| CameraDirection | No | Camera direction | -| CameraUpVector | No | Camera up vector | -| ViewToWorldScale | No | Vertical scaling from view to world | -| AspectRatio | No | Proportional relationship between the width and the height of the view (w/h). Assume 1.0 when reading previous BCF versions. | +Element | Optional | Description | +:-----------|:------------|:------------ +CameraViewPoint | No | Camera location +CameraDirection | No | Camera direction +CameraUpVector | No | Camera up vector +ViewToWorldScale | No | Vertical scaling from view to world +AspectRatio | No | Proportional relationship between the width and the height of the view (w/h). Assume 1.0 when reading previous BCF versions. #### PerspectiveCamera This element describes a viewpoint using perspective camera. It has the following elements: -| Element | Optional | Description | -| :-------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------- | -| CameraViewPoint | No | Camera location | -| CameraDirection | No | Camera direction | -| CameraUpVector | No | Camera up vector | -| FieldOfView | No | The entire vertical field of view angle of the camera, expressed in degrees. Valid range 0 to 180 exclusive. | -| AspectRatio | No | Proportional relationship between the width and the height of the view (w/h). Assume 1.0 when reading previous BCF versions. | +Element | Optional | Description | +:-----------|:------------|:------------ +CameraViewPoint | No | Camera location +CameraDirection | No | Camera direction +CameraUpVector | No | Camera up vector +FieldOfView | No | The entire vertical field of view angle of the camera, expressed in degrees. Valid range 0 to 180 exclusive. +AspectRatio | No | Proportional relationship between the width and the height of the view (w/h). Assume 1.0 when reading previous BCF versions. #### Implementation notes @@ -413,7 +404,7 @@ This element describes a viewpoint using perspective camera. It has the followin 2. **Constraints**: For any camera, `CameraDirection` and `CameraUpVector` cannot be zero length vectors or be parallel to each other. -3. **Aspect ratio adjustment**: When reproducing a camera viewpoint on a system that cannot adjust aspect ratio, the camera parameters shall be determined to ensure that all the contents of the original **view box** or **view frustum** remain visible, this might result in extra model content becoming visible compared to the original view. +3. **Aspect ratio adjustment**: When reproducing a camera viewpoint on a system that cannot adjust aspect ratio, the camera parameters shall be determined to ensure that all the contents of the original **view box** or **view frustum** remain visible, this might result in extra model content becoming visible compared to the original view. ![Adjustment of view on different ratio display](Graphics/RatioAdjustment.png) @@ -421,11 +412,11 @@ Implementers are free to adjust the camera settings to achieve that as preferred ![Adjustment of aspect ratio via retreating of camera position](Graphics/RatioAdjustmentByCameraPosition.png) -In perspective cameras, ratio adjustment by retreating `CameraViewPoint` while retaining content, requires estimating the deepest model bounding box displayed in the view, and might result in view obstructions due to new elements in view or change of projection occlusions. Orthogonal cameras do not require the evaluation of model bounding box, and don't suffer from changes in projection occlusion, but can still be impacted by new elements obscuring others in the view. +In perspective cameras, ratio adjustment by retreating `CameraViewPoint` while retaining content, requires estimating the deepest model bounding box displayed in the view, and might result in view obstructions due to new elements in view or change of projection occlusions. Orthogonal cameras do not require the evaluation of model bounding box, and don't suffer from changes in projection occlusion, but can still be impacted by new elements obscuring others in the view. Adjustment via `FieldOfView` or `ViewToWorldScale`, retains identical characteristics of elements in the original view, but might result in distortion of elements in the extra bands and require UI methods to permit users to restore viewing preferences. The code below provides guidance for camera adjustment via this method. -```csharp +``` csharp /// /// If we cannot adjust the ratio of the viewer, we need to adjust the properties of the camera /// so that everything that was visible in the previous configuration fits in the current frame. @@ -467,36 +458,30 @@ public bool AdjustToRatio(double availableRatio) ``` ### Lines (optional) - Lines can be used to add markup in 3D. Each line is defined by three dimensional Start Point and End Point. Lines that have the same start and end points are to be considered points and may be displayed accordingly. ### ClippingPlanes (optional) - ClippingPlanes can be used to define a subsection of a building model that is related to the topic. Each clipping plane is defined by Location and Direction. The Direction vector points in the _invisible_ direction meaning the half-space that is clipped. ### Bitmap (optional) - A list of bitmaps can be used to add more information, for example, text in the visualization. It has the following elements: -| Element | Optional | Description | -| :-------- | :------- | :-------------------------------------------------------- | -| Bitmap | No | Format of the bitmap (`png` or `jpg`) | -| Reference | No | Name of the bitmap file in the topic folder | -| Location | No | Location of the center of the bitmap in world coordinates | -| Normal | No | Normal vector of the bitmap | -| Up | No | Up vector of the bitmap | -| Height | No | The height of the bitmap in the model, in meters | +Element | Optional | Description | +:-----------|:------------|:------------ +Bitmap | No | Format of the bitmap (`png` or `jpg`) +Reference | No | Name of the bitmap file in the topic folder +Location | No | Location of the center of the bitmap in world coordinates +Normal | No | Normal vector of the bitmap +Up | No | Up vector of the bitmap +Height | No | The height of the bitmap in the model, in meters ## Implementation Agreements - The following agreements clarify ambiguities in the schema or explain how to interpret information from previous BCF versions. ### One to Many Mapping between Viewpoints and Comments - The schema would allow to have many to many mapping between viewpoints and comments. This is not allowed. A viewpoint can have multiple comments, but a comment can only refer to one viewpoint. ### Status and VerbalStatus to be Phased out - Status and Verbal Status of Comment will be phased out and replaced by TopicStatus and TopicType in Topic. When interpreting BCF 1.0 files use the following logic: @@ -515,13 +500,14 @@ When writing BCF 2.0 or higher files: Software tool vendors are encouraged to follow the following guidelines to ensure that the .BCFZIP files produced by their software can be correctly exchanged with other tools. -#### Use forward slash as path separator +#### Use forward slash as path separator The forward slash (“/”) should be used as a path separator rather than the backslash (“\”). Windows developers should consult the following MSDN page when attempting to follow this guideline: https://msdn.microsoft.com/en-us/library/mt712573(v=vs.110).aspx -| Correct | Incorrect | -| --------------------------------------------------- | --------------------------------------------------- | -| `742b0df3-9a99-4da3-95ad-171e282f8122/snapshot.png` | `742b0df3-9a99-4da3-95ad-171e282f8122\snapshot.png` | + +| Correct | Incorrect | +|---------|------------| +| `742b0df3-9a99-4da3-95ad-171e282f8122/snapshot.png` | `742b0df3-9a99-4da3-95ad-171e282f8122\snapshot.png` | #### Create directory (folder) entries in the zip file's central directory @@ -543,7 +529,6 @@ Archive: correctly_encoded_file_with_directory_entries.bcfzip ``` **Example of a zip file without directory entries (Incorrect)** - ``` Archive: incorrect_file_without_directory_entries.bcfzip Length Date Time Name @@ -556,6 +541,7 @@ Archive: incorrect_file_without_directory_entries.bcfzip 37382 4 files ``` + #### How to verify ##### On windows 7 using 7zip and the windows command prompt @@ -567,7 +553,6 @@ Archive: incorrect_file_without_directory_entries.bcfzip `“c:\Program Files\7-Zip\7z.exe" l $PATH_TO_BCFZIP` **Example output** - ``` 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 @@ -594,10 +579,9 @@ Archive: incorrect_file_without_directory_entries.bcfzip 1. Start your favourite shell and execute the following: -`$ unzip -l $PATH_TO_BCFZIP` +``` $ unzip -l $PATH_TO_BCFZIP ``` **Example output** - ``` Archive: /mnt/engineering/BIM/bcf files/bulkExport_1topic.bcfzip Length Date Time Name @@ -610,7 +594,6 @@ Archive: /mnt/engineering/BIM/bcf files/bulkExport_1topic.bcfzip --------- ------- 184205 5 files ``` - ### Additional Document Properties If any Xml file in an imported BCF container contains additional or unknown properties, BCF clients shall ignore them and not produce errors. This is to allow BCF implementations the freedom to add additional functionality. Client implementations are not required to preserve these properties.