Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static BIN file format #116

Open
oleomachado opened this issue Nov 27, 2023 · 3 comments
Open

Static BIN file format #116

oleomachado opened this issue Nov 27, 2023 · 3 comments

Comments

@oleomachado
Copy link

I found that the static implementation do something that I want to do.

   displayStaticBuffer("glcanvas", "duplex.bin");

  export function displayStaticBuffer(domNode, bufferPath) {
      var canvas = document.getElementById(domNode);
      let v = new BimServerViewer({quantizeVertices:false}, canvas, window.innerWidth, window.innerHeight, null);
      v.loadAnnotationsFromPreparedBufferUrl(bufferPath);
  }

Is there any documentation of the .BIN format?

How could I generate it for another IFC file?

@aothms
Copy link
Member

aothms commented Nov 27, 2023

.bin is probably the binary buffer of a glTF v1 file. These days everybody is using glTF v2 .glb where both the hierarchical info (json) and binary geometry info is combined into a single binary file (typically). With IfcConvert you can generate .glb files from .ifc.

@oleomachado
Copy link
Author

I checked, but the available BIN doesn't seem to be a Gltf Bin V1 or V2 (no magic number, not following the specification).

But I believe it was created using this repo https://github.com/opensourceBIM/BinarySerializers.

I will continue my research :)

Thanks

@hlg
Copy link
Member

hlg commented Sep 16, 2024

Yes, this was probably created from the binary serializer plugins. The format is not documented besides through the serializer implementation code itself.

To create these files, you just need to run a BIMserver instance (local or remote) with the BinarySerializer plugins installed, upload your IFC to it and download the binary file. You can do the upload and download through a web client like BIMvie.ws or any other client using the BIMserver API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants