Skip to content

BIMsurfer Serializers

hlg edited this page Feb 7, 2021 · 11 revisions

Current serializers (used by BIMvie.ws and BIMsurfer)

Binary serializers

These serializers write the geometry in a binary format that in most cases can easily be send to GPU's.

The source code can be found in the BinarySerializers plugin repository and should be quite self explanatory.

Because at this time, JavaScript is not able to load binary data in a streaming way, there is also a messaging implementation. This implementation sends the geometry in batches via WebSocket: BinaryGeometryMessagingSerializer.java.

These serializers are used by BIMvie.ws and BIMsurfer. The non-messaging serializers are not used any more and have been removed.

JSON serializers

To be updated

Older serializers

SceneJsShellSerializer

This serializes the semantic information of the IFC model in JSON format. This contains no geometry. It's used by the sidebar showing the tree etc...

Example files:

JsonGeometrySerializer

Serializes the geometry in JSON. Right now this serializer is being called for every (enabled and existing) IfcProduct subtype.

Example files:

Even older serializers

The older serializers "SceneJSSerializer" and "StreamingSceneJSSerializer" are not used anymore.

Clone this wiki locally