ViewpointValue
Interface in @bimworks/viewercommon.
API catalogue · @bimworks/viewercommon · Interface
TypeScript#
interface ViewpointValueA stored viewpoint (docs/markup-components-design.md §3.4): the buildingSMART BCF-API 3.0 viewpoint JSON with a
bimworks member for what BCF cannot hold. Every coordinate is in the version frame of bimworks.version_uuid
(VersionFrames), in metres. The object ids and uuids only mean something on the BIM.works instance it was
stored on
Members#
| Member | Kind | Description |
|---|---|---|
| bimworks | Property | |
| clipping_planes | Property | Each plane cuts away the side its direction points to; a section box is stored as its six planes |
| orthogonal_camera | Property | view_to_world_scale: the height of the view in metres |
| perspective_camera | Property |
bimworks#
TypeScript#
bimworks: { camera?: { pivot: [number, number, number] | null; target_distance: number }; measurements?: (ViewpointMeasurement)[]; model_set?: { models: (ViewpointModel)[]; placement: "LOCAL" | "GEO" }; models?: (string)[]; parts?: (ViewpointPart)[]; planes?: ({ name: string | null; standard: string | null })[]; schema: "bimworks.viewpoint/1"; sets?: { coloring?: ({ color: string; qids: ViewpointQids } | { alter: number; qids: ViewpointQids })[]; exceptions?: ViewpointQids; selection?: ViewpointQids; xray?: ViewpointQids }; version_uuid: string; visibility?: { default_visibility: boolean }; [member: string]: unknown }clipping_planes#
TypeScript#
clipping_planes?: ({ direction: ViewpointXyz; location: ViewpointXyz })[]Each plane cuts away the side its direction points to; a section box is stored as its six planes
orthogonal_camera#
TypeScript#
orthogonal_camera?: ViewpointCamera & { view_to_world_scale: number }view_to_world_scale: the height of the view in metres
perspective_camera#
TypeScript#
perspective_camera?: ViewpointCamera & { field_of_view: number }