This is part 8 of a series of posts about getting BIM data into Unity. In this post, we’ll discuss IFC as a transfer format towards Unity. As with the previous post, this is not a coding post, although hints and examples are provided. Open BIM and IFC Everybody who ever met me or heard me present on a conference or BIM-lecture will not be surprised to hear that I’m a strong believer in the Industry Foundation Classes (IFC), an open standard, with already two versions published as an ISO standard, being IFC2x2 and IFC4 (but surprisingly not IFC2x3 which is widely used). In the ideal world, this would be the format to use to transfer BIM data into another environment, such as Unity. So what are our options? Looking in the Unity Asset Store Assimp is a library which supports multiple formats, including IFC. https://assetstore.unity.com/packages/tools/modeling/trilib-unity-model-loader-package-91777 I did a few attempts, but alas without any success. It is po...
There is also a free Ruby script which can export STL models from SketchUp and also import them.
ReplyDeletehttp://www.crai.archi.fr/RubylibraryDepot/Ruby/EM/su2stl.rb
When you open the source, it seems that the code is "mangled/hashed".
Starts with
eval %q{IyBDb3B5cmlnaHQgMjAw...
and ends with
...0tLS0tLS0tLS0=}.unpack("m").to_s
However, is it not encrypted, thus it can be reconstructed using the Ruby console. I've replaced the "eval" function at the beginning with "print" and enclosed the full text of the document with () to display the full code on the Ruby console inside SketchUp.
print ( %q{...
and
=}.unpack("m").to_s )
If you now load the script (load "su2stl.rb") it'll display the full code in the console. With a simple copy and paste you can place the real code in a text document. I don't think this is anything illegal. Just a bit tricky.
If you have Ruby installed (e.g. in Linux or OSX), just make the change to the text document and execute it in a command prompt (e.g. bash):
ruby su2stl.rb > su2stl-txt.rb
This will write the text into a non-mangled readable format.