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 Cesium Sandcastle export command allows you to generate a URL to view an iModel in Cesium Sandcastle. This URL can be used to visualize 3D tilesets in a Cesium environment.
4
+
5
+
**Workflow steps:**
6
+
7
+
1.**Create Export**
8
+
Use the [Create Export](https://developer.bentley.com/apis/mesh-export/operations/create-export/) API to generate a new export for the specified iModel and changeset.
9
+
- Input: iModel ID, changeset ID, and export type (`CESIUM`).
10
+
- Output: Export ID and status.
11
+
12
+
2.**Check Export Status**
13
+
Use the [Get Export](https://developer.bentley.com/apis/mesh-export/operations/get-export/) API to check the status of the export.
14
+
- Poll the export status until it is marked as `Complete`.
15
+
16
+
3.**Extract Tileset URL**
17
+
Parse the `_links.mesh.href` property from the completed export to retrieve the tileset URL.
18
+
19
+
4.**Generate Sandcastle URL**
20
+
Compress the tileset URL and embed it into a Cesium Sandcastle URL.
21
+
- Use the `deflate` function to compress the data and encode it in Base64 format.
22
+
23
+
5.**Open in Browser (Optional)**
24
+
If the `--open` flag is provided, open the generated URL in the default browser.
25
+
26
+
## Notes
27
+
28
+
1. The export type must be `CESIUM` to generate a tileset compatible with Cesium Sandcastle.
29
+
2. The tileset URL is extracted from the `_links.mesh.href` property of the export response.
30
+
3. The generated URL can be opened directly in a browser or shared with others.
0 commit comments