Giter Site home page Giter Site logo

Comments (13)

kushal154 avatar kushal154 commented on September 22, 2024

Can someone please help here?

from xeokit-convert.

xeolabs avatar xeolabs commented on September 22, 2024

Hi, if you represent one of our enterprise users, please log this issue with our Jira issue tracker and we'll prioirtise.

To reproduce this issue on our end, we'll also need to borrow the IFC file you're trying to convert (which we'll not share and will discard afterwards of course).

from xeokit-convert.

kushal154 avatar kushal154 commented on September 22, 2024

How do I share the IFC file privately with your team to take this forward?

from xeokit-convert.

xeolabs avatar xeolabs commented on September 22, 2024

Please get in contact here: https://creoox.com/en/contact/

from xeokit-convert.

kushal154 avatar kushal154 commented on September 22, 2024

@xeolabs I have sent you details via contact form. Kindly check.

from xeokit-convert.

xeolabs avatar xeolabs commented on September 22, 2024

@kushal154 try the latest ifc2gltf release - there's an update there that may resolve this issue.

from xeokit-convert.

kushal154 avatar kushal154 commented on September 22, 2024

@xeolabs As per your and Wlod's input, I used the split option with “-s 100” to generate GLB files and then used the convert2xkt to create the XKT files. However, I now have the 3 XKT files with a combined size of approx. 750 MB and the original IFC file size is 466 MB. So instead of compression, file size has increased by 60% after conversion. I have shared the link to the IFC file with Wlod in case you want to look at it. Please note I used the latest version 3.2 of ifc2gltf.

from xeokit-convert.

xeolabs avatar xeolabs commented on September 22, 2024

@kushal154 while most IFC files we convert will reduce in size once converted with ifc2gltf and convert2xkt, it is still possible for the IFC to contain geometry that is defined in such a way that once triangulated by ifc2gltf the file size actually ends up larger.

An example is an IfcShapeRepresentation, which can define a geometry using a list of 2D coordinates representing a profile that is to be swept or rotated, to generate a triangle mesh. For this geometry, the IFC contains a compact list of 2D points. Then, when converted to glTF/glb by ifc2gltf, the profile is swept, to generate a triangle mesh for the geometry, which can require much more storage in the glTF/glb file, and in the XKT file once that's converted by convert2xkt.

So, when an IFC contains these sort of geometries, there will often be an increase in file size when converting IFC->glTF/glb->XKT.

Fortunately, most IFC building models we encounter do not have large numbers of IfcShapeRepresentation elements and so we do get good compression.

I will look at this file though and see what we can recommend.

from xeokit-convert.

kushal154 avatar kushal154 commented on September 22, 2024

@xeolabs Thank you. I shall await your thoughts and guidance as it has become a hurdle for us to move ahead.

from xeokit-convert.

kushal154 avatar kushal154 commented on September 22, 2024

@xeolabs Please let me know if there is any update.

from xeokit-convert.

xeolabs avatar xeolabs commented on September 22, 2024

@kushal154 I haven't received any Jira issue yet.

In the meantime, perhaps try a larger value for '-s', eg.

ifc2gltfcxconverter -i model.ifc -o myGLBFiles/model.glb -m myGLBFiles/model.json -s 100

from xeokit-convert.

kushal154 avatar kushal154 commented on September 22, 2024

@xeolabs I have raised the Jira issue XCD-73.

When I use -s as 200, it leads to "RangeError: Invalid array length" during conversion. Thus I tried with a lower value of 100.

from xeokit-convert.

xeolabs avatar xeolabs commented on September 22, 2024

@kushal154 OK I found the issue now, will take a look

from xeokit-convert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.