BIMsurfer Serializers

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

Current serializers (used by BIMvie.ws and BIMsurfer)

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

This serializer is used by BIMvie.ws and BIMsurfer.

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
You can’t perform that action at this time.
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.
Press h to open a hovercard with more details.