Skip to content

BIMsurfer Serializers

Ruben de Laat edited this page Mar 23, 2015 · 11 revisions

For BIMsurfer 2 serializers are being used.

Current serializer

BinaryGeometrySerializer

This serializer writes the geometry in a binary format that in most cases can easily be send to GPU's. The source code should be quite self explanatory: https://github.com/opensourceBIM/BIMserver/blob/master/MiscSerializers/src/org/bimserver/serializers/binarygeometry/BinaryGeometrySerializer.java

MessagingBinaryGeometrySerializer

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. https://github.com/opensourceBIM/BIMserver/blob/master/MiscSerializers/src/org/bimserver/serializers/binarygeometry/BinaryGeometryMessagingSerializer.java

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