exportGraphics Method
Export meshes suitable for graphics APIs from arbitrary geometry in elements in this IModelDb.
- Requests can be slow when processing many elements so it is expected that this function be used on a dedicated backend, or that shared backends export a limited number of elements at a time.
- Vertices are exported in the IModelDb's world coordinate system, which is right-handed with Z pointing up.
- The results of changing ExportGraphicsOptions during the ExportGraphicsOptions.onGraphics callback are not defined.
Example that prints the mesh for element 1 to stdout in OBJ format
exportGraphics(exportProps: ExportGraphicsOptions): DbResult
Parameter | Type | Description |
---|---|---|
exportProps | ExportGraphicsOptions |
Returns - DbResult
0 if successful, status otherwise
Defined in
- backend/src/IModelDb.ts Line 1236
Last Updated: 20 June, 2023