Comments (5)
You need to pass a configs
into the convert2xkt
call.
I just made convert2xkt treat the configs arg as optional, so you could either supply an empty map for that, or update to the latest release.
See here for how to use on node:
https://github.com/xeokit/xeokit-convert/blob/main/convert2xkt.js
from xeokit-convert.
Where do I get these configs? I've copied the file you provided in the src folder but now it says that Cannot read properties of undefined (reading 'IfcAPI')
from xeokit-convert.
Where do I get these configs? I've copied the file you provided in the src folder but now it says that
Cannot read properties of undefined (reading 'IfcAPI')
See here for where the configs are obtained for passing into convert2xkt: https://github.com/xeokit/xeokit-convert/blob/main/convert2xkt.js#L172
This is the nodejs script that invokes the convert2xkt
function and provides the configs argument, along with the WebIFC argument required for converting IFC.
We don't have checking for missing arguments in the convert2xkt
function, but the nodejs script will provide a working model for yoy to use the convert2xkt function on node.
This is the best support I can provide at the moment for your use case of calling convert2xkt function from your own nodejs script. If your enterprise needs prioritised support, please get in touch here: https://creoox.com/en/contact/
from xeokit-convert.
ok but I cannot spawn the commander convert2xkt command from a node.js script since it is not exported from the package.json as en entry file... so I do not know how to make the function works either!
from xeokit-convert.
Try cloning the repository and modifying the convert2xkt.js script
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
- [parseGLTFIntoXKTModel] RangeError: Invalid array length HOT 13
- 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
- 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.