Comments (13)
Can someone please help here?
from xeokit-convert.
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.
How do I share the IFC file privately with your team to take this forward?
from xeokit-convert.
Please get in contact here: https://creoox.com/en/contact/
from xeokit-convert.
@xeolabs I have sent you details via contact form. Kindly check.
from xeokit-convert.
@kushal154 try the latest ifc2gltf release - there's an update there that may resolve this issue.
from xeokit-convert.
@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.
@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.
@xeolabs Thank you. I shall await your thoughts and guidance as it has become a hurdle for us to move ahead.
from xeokit-convert.
@xeolabs Please let me know if there is any update.
from xeokit-convert.
@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.
@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.
@kushal154 OK I found the issue now, will take a look
from xeokit-convert.
Related Issues (20)
- Option to disable ZIPping in XKT
- [FIX] Fix conversion of JSON glTF with embedded textures
- bug in newest beta: configs.sourceConfigs ||= {}; HOT 5
- Issue with IFC to XKT Conversion Resulting in Reduced Model Sizes
- [FEATURE] Add externalMetadata option for glTF and GLB
- Cannot create a string longer than 0x1fffffe8 characters HOT 3
- IFC ==> XKT - IFCBOOLEAN
- [ERROR]: [parseGLTFIntoXKTModel] RangeError: Invalid typed array length HOT 5
- Deprecate glTF conversion in favor of .glb
- Unsupported value for params.primitiveType HOT 2
- Can I decode the xktArrayBuffer by calling toString() ? HOT 2
- problem on npm i weokit/report HOT 6
- can not run nodejs from latest release
- Provide hint in logged error for [ERROR]: [parseGLTFIntoXKTModel] RangeError: Invalid typed array length: 11340
- [FEATURE SUGGESTION] Add TypeScript HOT 1
- [FIX] Make convert2xkt configs argument optional HOT 5
- Cannot read properties of undefined (reading 'IfcAPI')
- Update web-ifc version
- commande line convert on ubuntu don't exclude (from ifc to xkt)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xeokit-convert.