You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `translucency` object decides which components are translucent and which are opaque. Visibility has a higher priority than translucency: A translucent component which is also resolved to be invisible should not be rendered.
1403
+
1404
+
Commonly, translucency is specified using a numeric value (alpha) ranging from 0 to 1 where a value of 0 indicates complete transparency and a value of 1 indicates complete opacity. This specification leaves the alpha value for translucent components to the vendor's discretion: when a component is resolved as 'translucent', it should rendered with an alpha greater than 0 but less than 1 in a manner consistent with the visual style of the rendering application.
1405
+
1406
+
##### Optimization rules
1407
+
BCF is suitable for controlling the translucency of a few components. A huge list of translucent/opaque components will cause poor performance. When encoding a viewpoint follow these rules:
1408
+
- Apply visibility optimization first and optimize translucency for visible components only.
1409
+
- Omit the translucency element altogether if all visible components are opaque.
1410
+
- If the list of translucent components is smaller than the list of opaque components: set `default_translucency` to false and put the translucent components in exceptions.
1411
+
- If the list of opaque components is smaller or equals the list of translucent components: set `default_translucency` to true and put the opaque components in exceptions.
1412
+
- If the size of exceptions is huge (over 1000 components), alert the user and ask them to alter the translucency setting to allow efficient encoding.
| default_translucency | boolean | If true: Make all components translucent, and make the exceptions opaque. If false: Make all components opaque and make all the exceptions translucent. | optional, default false |
1417
+
| exceptions | array of [Component](#35210-component)| Components to make translucent or opaque as determined by default_translucency | optional |
1418
+
| translucency_setup_hints |[View setup hints](#35215-translucency-setup-hints)| Hints about the translucency of spaces, space boundaries and openings. | optional |
Retrieve translucency of components in a viewpoint.
1839
+
1840
+
**Example Request**
1841
+
1842
+
GET /bcf/4.0/projects/F445F4F2-4D02-4B2A-B612-5E456BEF9137/topics/B345F4F2-3A04-B43B-A713-5E456BEF8228/viewpoints/a11a82e7-e66c-34b4-ada1-5846abf39133/translucency
1843
+
1844
+
**Example Response**
1845
+
1846
+
Response Code: 200 - OK
1847
+
Body:
1848
+
{
1849
+
"translucency": {
1850
+
"default_translucency": true,
1851
+
"exceptions": [
1852
+
{
1853
+
"ifc_guid": "2MF28NhmDBiRVyFakgdbCT",
1854
+
"originating_system": "Example CAD Application",
1855
+
"authoring_tool_id": "EXCAD/v1.0"
1856
+
}, {
1857
+
"ifc_guid": "3$cshxZO9AJBebsni$z9Yk",
1858
+
}
1859
+
],
1860
+
"translucency_setup_hints": {
1861
+
"spaces_translucent": true,
1862
+
"space_boundaries_translucent": false,
1863
+
"openings_translucent": true
1864
+
}
1865
+
}
1866
+
}
1867
+
1868
+
### 3.5.10 DELETE Viewpoint Service
1785
1869
1786
1870
**Resource URL**
1787
1871
@@ -1801,7 +1885,7 @@ Note: If there is a comment associated to the viewpoint, the server might reject
0 commit comments